]> 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)
committerPedro Amorim <pedro.amorim@ptfs-europe.com>
Tue, 14 Nov 2023 14:41:58 +0000 (13:41 -0100)
commit04feadb6bf680db05c0921560082c924ea5a8141
treed25e52f81cbebfbf6d0800d5cf84001a85e9a00f
parent5027f0c8c1fbdbeb3683a5a9d6af7abb110e886f
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>
(cherry picked from commit 7890c068fa5c3e51abeb94fa76f2f425af777768)
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
cataloguing/additem.pl