[Koha-bugs] [Bug 28644] Can't call method "borrowernumber" on an undefined value at C4/Reserves.pm line 607

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Sep 7 12:59:36 CEST 2021


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

--- Comment #10 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 124571
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=124571&action=edit
Bug 28644: [19.11.x] Fix calling borrowernumber on undefined value

If the hold is not found (e.g. already cancelled), we should
return earlier without crashing:
    Can't call method "borrowernumber" on an undefined value at
/usr/share/koha/C4/Reserves.pm line 521
    (Note: line number from 19.11)

Test plan:
Run t/db_dependent/Reserves.t
Add a hold, go to user menu with holds in OPAC.
At the same time, cancel this hold from staff.
Now click the Cancel in OPAC.

Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>

Signed-off-by: Nick Clemens <nick at bywatersolutions.com>

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


More information about the Koha-bugs mailing list