]> git.koha-community.org Git - koha.git/commit
Bug 30099: Fix error when accessing circulation.pl without patron parameter
authorFridolin Somers <fridolin.somers@biblibre.com>
Mon, 14 Feb 2022 20:35:53 +0000 (10:35 -1000)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 25 Feb 2022 12:48:15 +0000 (07:48 -0500)
commit47f5b849685eb9af0996fd5d772606552b0b6201
treeed2d258ac923e2004e59be211d98b82b56ca61a6
parentd2452e0c09a894961c900f73676519f044151884
Bug 30099: Fix error when accessing circulation.pl without patron parameter

If I access circulation.pl directly, with no patron cardnumber or borrowernumber submitted, I get an error:
Can't call method "messages" on an undefined value at /kohadevbox/koha/circ/circulation.pl line 525

This is caused by Bug 29230 which calls $patron outside a
"if ($aptron)".

Test plan :
1) In staff interface, click in 'check out' search box
2) Hit enter (without a search text)
=> Without patch you get an error
=> With patch you see a blank page /cgi-bin/koha/circ/circulation.pl

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
circ/circulation.pl