Bugzilla – Attachment 38813 Details for
Bug 14122
Patron card: Software error when creating using borrower_number as parameter from URL
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14122 - Patron card: Software error when creating using borrower_number as parameter from URL
Bug-14122---Patron-card-Software-error-when-creati.patch (text/plain), 1.53 KB, created by
Mark Tompsett
on 2015-05-04 13:28:29 UTC
(
hide
)
Description:
Bug 14122 - Patron card: Software error when creating using borrower_number as parameter from URL
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2015-05-04 13:28:29 UTC
Size:
1.53 KB
patch
obsolete
>From 054d888cc6f6c049204916a558f26e08a4c226ba Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >Date: Sat, 2 May 2015 21:47:01 +0200 >Subject: [PATCH] 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@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. >--- > patroncards/create-pdf.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/patroncards/create-pdf.pl b/patroncards/create-pdf.pl >index 7a3136c..1df3e27 100755 >--- a/patroncards/create-pdf.pl >+++ b/patroncards/create-pdf.pl >@@ -89,7 +89,7 @@ if (@label_ids) { > } > elsif (@borrower_numbers) { > grep { >- push(@{$items}, {item_number => $_}); >+ push(@{$items}, {borrower_number => $_}); > } @borrower_numbers; > } > else { >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 14122
:
38772
|
38813
|
38828