]> 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)
committerKyle Hall <kyle@bywatersolutions.com>
Mon, 7 Feb 2022 11:53:30 +0000 (06:53 -0500)
commit89be96b35d0556c54aece53cf4bc46956138150a
treeb5675e6b496316a43b8b37dfa196cdf78112d982
parent5525498eb390f3e2f238c856eeddef5ac8a5ad7b
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>
opac/opac-reserve.pl