]> 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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 11 Aug 2021 11:27:52 +0000 (13:27 +0200)
commit96ea4a4dde03e32ead94682c87f7a85350cca0cb
treee11943c9124c69468f04b4e9830ed3d2480d786a
parentc1fbfa5fafde0056f10b9a8e17d780cb423c7217
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>
reserve/request.pl