]> git.koha-community.org Git - koha.git/commit
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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 13 Aug 2021 20:23:16 +0000 (10:23 -1000)
commitecf3aa475232b4b7cb13362e3551fe1047c52b47
tree36d5854e72d8feb35b79995c4750a040c38d3b41
parent96f7a7947840bb3c778b46c0a6dcd63f35b0b2b1
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>
(cherry picked from commit 9f1a5069ed836f99988cabbeb052ff245e96fb52)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
reserve/request.pl