[Koha-bugs] [Bug 30099] Error when accessing circulation.pl without patron parameter

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Feb 14 21:54:26 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30099

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

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

--- Comment #3 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
Created attachment 130573
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=130573&action=edit
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 at web.de>



Current patch-complexity: Trivial patch

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


More information about the Koha-bugs mailing list