http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14122
Bug ID: 14122
Summary: Patron card: Software error when creating using
borrower_number as parameter from URL
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: P5 - low
Component: Label/patron card printing
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Use case: Add link to directly print a patron card from the patron's detail
page.
This could be done using a URL like the following:
...cgi-bin/koha/patroncards/create-pdf.pl?borrower_number=61&template_id=24&layout_id=21&start_card=1
To test, replace the values for borrower_number, temlate_id and layout_id to
something that exists in your system.
The URL leads to a software error:
Can't use an undefined value as a HASH reference at
/usr/share/kohaclone/patroncards/create-pdf.pl line 118.
Reason:
Line 92:
push(@{$items}, {item_number => $_});
should read:
push(@{$items}, {borrower_number => $_});
Patch follows.
--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/