]> git.koha-community.org Git - koha.git/commit
Bug 14186: Undefined $reservedfor causes warn in opac-reserve.pl
authorAleisha <aleishaamohia@hotmail.com>
Tue, 12 May 2015 03:30:46 +0000 (03:30 +0000)
committerLiz Rea <wizzyrea@gmail.com>
Sun, 7 Jun 2015 22:24:10 +0000 (10:24 +1200)
commit2d2de7b2b3c69732617d1c8bc9f09d81ceedab13
treea43d9a734ad82d387ee157a97446f37c7e6212eb
parent1d9774a94d2682c3b6899e3a4c79a4f9d1afa1d1
Bug 14186: Undefined $reservedfor causes warn in opac-reserve.pl

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: The QA test failed - "forbidden pattern: tab char (line 470)".

         Marking this as 'FAILED QA'

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit 8fdd352bc9bb4d0dd84ca0df33b51558ee765ea1)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
opac/opac-reserve.pl