Bug 28779: Skip processing of non-existent biblios
authorJoonas Kylmälä <joonas.kylmala@helsinki.fi>
Thu, 29 Jul 2021 16:35:47 +0000 (19:35 +0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 13 Aug 2021 12:00:41 +0000 (08:00 -0400)
commit9f1a5069ed836f99988cabbeb052ff245e96fb52
treea59fd862d78cb70478a24d17cdcb549cb9411de4
parentece10004aa60c6e78207da22428202a088e98ef0
Bug 28779: Skip processing of non-existent biblios

Just checking with a regex that whether an input looks like a biblionumber
is not enough, we need to also verify there is a biblio really existing
in the database and skip processing of hold request for non-existent
biblionumbers.

To test:
 1) Go to page /cgi-bin/koha/reserve/request.pl?biblionumbers=XXXXX
    where XXXXX is non-existent biblionumber, notice internal server error
 2) Apply patch
 3) Repeat step 1 and notice we cannot place a hold

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
reserve/request.pl