[Koha-bugs] [Bug 14122] Patron card: Software error when creating using borrower_number as parameter from URL

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon May 4 22:35:11 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14122

Katrin Fischer <katrin.fischer at bsz-bw.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #38813|0                           |1
        is obsolete|                            |

--- Comment #8 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
Created attachment 38828
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38828&action=edit
[PASSED QA] Bug 14122 - Patron card: Software error when creating using
borrower_number as parameter from URL

To test prepare an URL like the following:

...cgi-bin/koha/patroncards/create-pdf.pl?borrower_number=61&template_id=24&layout_id=21&start_card=1

Change the values for borrower_number, template_id and layout_id to something
that exists in your system.

Without patch, 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.

With patch, a PDF with the patron card is created.

Signed-off-by: Mark Tompsett <mtompset at hotmail.com>

NOTE: This does NOT deal with the case where borrowernumber,
template_id, or layout_id are invalid. This only deals with
the case where they do exist.

Invalid borrowernumber still gives same error.
Invalid template_id or layout_id gives error on line 111.
Those are beyond the scope of this bug.

Signed-off-by: Katrin Fischer <katrin.fischer.83 at web.de>
Nice!

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list