Koha/patroncards
Galen Charlton 46bbfa12a1 Bug 9924: (follow-up) ensure that correct error message is displayed
(Apparently) unlike HTML::Template::Pro, Template Toolkit doesn't like
template variables that are entirely numeric -- in conditionals, it
consider them integers, most of which are Perl true.

This patch changes this by setting the error variable to the error
value.

To test:

[1] Run the test plan from the previous patch.  In each
    case, verify that the error message is specifically applicable
    to the test.  For example, if you try uplaoading a patron image
    that is larger than 500KB, the error message displayed should
    specifically say so.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Thank you Galen for catching this. Error messages showing up
now are much more specific and according to the error codes given.
I testd uploading a file larger then 500KB and triggered several
error messages giving the error code in the URL:
/cgi-bin/koha/patroncards/manage.pl?card_element=profile&error=201

All tests and QA script pass.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2013-09-08 19:19:50 +00:00
..
card-print.pl Bug 8315 - remove use C4::* version 2012-07-13 14:17:20 +02:00
create-pdf.pl Bug 8315 - remove use C4::* version 2012-07-13 14:17:20 +02:00
edit-batch.pl Bug 9924: (follow-up) ensure that correct error message is displayed 2013-09-08 19:19:50 +00:00
edit-layout.pl Bug 8315 - remove use C4::* version 2012-07-13 14:17:20 +02:00
edit-profile.pl Bug 8315 - remove use C4::* version 2012-07-13 14:17:20 +02:00
edit-template.pl Bug 8315 - remove use C4::* version 2012-07-13 14:17:20 +02:00
home.pl Fix FSF address in directory patroncards/ 2010-03-16 20:17:55 -04:00
image-manage.pl Bug 9924: (follow-up) ensure that correct error message is displayed 2013-09-08 19:19:50 +00:00
manage.pl Bug 9924: (follow-up) ensure that correct error message is displayed 2013-09-08 19:19:50 +00:00
members-search.pl Revert "Bug 9951: Followup for Tools" 2013-04-29 15:04:38 -07:00
print.pl Bug 8315 - remove use C4::* version 2012-07-13 14:17:20 +02:00