]> git.koha-community.org Git - koha.git/commit
Bug 29840: Deal with non-existing biblionumber in opac-reserve
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 10 Jan 2022 13:02:49 +0000 (14:02 +0100)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Wed, 16 Feb 2022 21:29:02 +0000 (21:29 +0000)
commit290b0c344463e324b92c7e40650a55d214943698
tree7554a2efadadfd4a85d36f2b537aece1ef272118
parent51772308e425fa466589c3601e2ff9cd7dca20ee
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

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 89be96b35d0556c54aece53cf4bc46956138150a)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
opac/opac-reserve.pl