Koha/patroncards
Marc Véron 87dbed0abd Bug 16747 - Patron card creator broken with version 16.05
To reproduce:
- Prepare a patron car layout with Image 1 using Patron Image
- Create a patron card for a patron without patron image
Result: OK, PDF can be opened wit PDF viewer
- Try to create a patron card with a patron who has a patron image
Result: The PDF file is corrupt (contains text only with error message)
        intranet error log contains: create-pdf.pl: Illegal division
        by zero at /usr/share/kohaclone/patroncards/create-pdf.pl line 200
To test:
- Apply patch
- Create a patron card with a patron who has a patron image
Result: PDF is OK and contains the image

Bonus test: Do the same with a card layout with an additional image
(Image 2: Image source: Other image)

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Test and bonus test pass: PDF generated without errors.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
2016-06-21 20:48:50 +00:00
..
add_user_search.pl
create-pdf.pl Bug 16747 - Patron card creator broken with version 16.05 2016-06-21 20:48:50 +00:00
edit-batch.pl Bug 16154: CGI->multi_param - Assign a list 2016-04-26 23:16:43 +00:00
edit-layout.pl Bug 15414: Silencing warns triggered by creating a new layout in patron card creator 2016-04-29 11:35:39 +00:00
edit-profile.pl Bug 16154: CGI->multi_param - Force scalar context 2016-04-26 23:16:43 +00:00
edit-template.pl Bug 16154: CGI->multi_param - Force scalar context 2016-04-26 23:16:43 +00:00
home.pl
image-manage.pl Bug 16154: CGI->multi_param - Declare a list 2016-04-26 23:16:42 +00:00
manage.pl
print.pl Bug 16154: CGI->multi_param - Declare a list 2016-04-26 23:16:42 +00:00