]> git.koha-community.org Git - koha.git/commit
Bug 32379: Add check on existing item
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Thu, 2 Nov 2023 10:47:50 +0000 (10:47 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 10 Nov 2023 07:04:10 +0000 (21:04 -1000)
commit7890c068fa5c3e51abeb94fa76f2f425af777768
treef30924b3f7401f71a1b2746b4f479c9789e1b6ff
parent17eeab918a145e3e5d25f2ef1e59cbeb1952eb83
Bug 32379: Add check on existing item

Simplest fix; bail out with output_error.

Test plan:
Try /cgi-bin/koha/cataloguing/additem.pl?biblionumber=1&op=saveitem&itemnumber=999999
Note: Replace 1 by existing biblionumber, and iitem 999999 should not exist.
You should get the 404 screen now.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 0677a53e1445342ac4927a1177100f69e4f02271)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
cataloguing/additem.pl