[Koha-bugs] [Bug 29840] opac-reserve explodes if invalid biblionumber is passed

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jan 10 14:04:34 CET 2022


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

--- Comment #1 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
Created attachment 129256
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=129256&action=edit
Bug 29840: Deal with non-existing biblionumber in opac-reserve

We should not explode if the biblionumber passed in not in DB.

Test plan:
Hit /cgi-bin/koha/opac-reserve.pl?biblionumber=42424
and notice the error message.

Without this patch you got
Can't call method "holds" on an undefined value at
/kohadevbox/koha/opac/opac-reserve.pl line 172

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


More information about the Koha-bugs mailing list