Bugzilla – Attachment 39176 Details for
Bug 14186
Noisy warns in opac-reserve.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[FOLLOWUP] Bug 14186: Undefined $reservedfor causes warn in opac-reserve.pl
FOLLOWUP-Bug-14186-Undefined-reservedfor-causes-wa.patch (text/plain), 1.72 KB, created by
Indranil Das Gupta
on 2015-05-14 02:09:10 UTC
(
hide
)
Description:
[FOLLOWUP] Bug 14186: Undefined $reservedfor causes warn in opac-reserve.pl
Filename:
MIME Type:
Creator:
Indranil Das Gupta
Created:
2015-05-14 02:09:10 UTC
Size:
1.72 KB
patch
obsolete
>From c9aa6eed7ef3a6d452b2716b92831ed63efaa02a Mon Sep 17 00:00:00 2001 >From: Indranil Das Gupta <indradg@gmail.com> >Date: Thu, 14 May 2015 07:23:16 +0530 >Subject: [PATCH] [FOLLOWUP] Bug 14186: Undefined $reservedfor causes warn in > opac-reserve.pl > >This is a followup for Bug 14186 that removes the extraneous tab >char on line 470, so that the patch can clear QA tools. > >This patch sets $reservedfor to an empty string. > >Test plan >========= > >1/ in a terminal, run `tail -f ` on your instance's opac-error.log >2/ go to the opac and search from an item that exists on the Koha > instance. >3/ Select the title (if more than one title is returned) and click on > 'Place hold' link to go to opac-reserve.pl >4/ notice the warning - "opac-reserve.pl: Use of uninitialized value > $reservedfor" appear in the `tail`ed opac-error.log >5/ apply the patch >6/ reload the page (opac-reserve.pl) >7/ page works but the warning in step #4 is no longer thrown up >8/ run qa test (i.e. koha-qa.pl -c 1 -v 2), there should be no error > >Remarks: Testing result match expected test plan output. The QA tests > pass with "OK" for the commit. > >Signed-off-by: Indranil Das Gupta (L2C2 Technologies) <indradg@gmail.com> >--- > opac/opac-reserve.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl >index 51402b8..b6c8768 100755 >--- a/opac/opac-reserve.pl >+++ b/opac/opac-reserve.pl >@@ -467,7 +467,7 @@ foreach my $biblioNum (@biblionumbers) { > > # the item could be reserved for this borrower vi a host record, flag this > $reservedfor //= ''; >- if ($reservedfor eq $borrowernumber){ >+ if ($reservedfor eq $borrowernumber){ > $itemLoopIter->{already_reserved} = 1; > } > >-- >1.9.1
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 14186
:
39057
|
39175
|
39176
|
39399
|
39400
|
39401
|
39402