]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Sat, 22 Jan 2022 07:34:51 +0000 (21:34 -1000)
commitdb07ca09cc3da4d32fad03d629f834d6e02db169
tree9e9352769b145977f05431787582a12d7cca3771
parent53b693bae4a7e2b1cb086038f62b9b848f6d3900
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>
opac/opac-reserve.pl