]> git.koha-community.org Git - koha.git/commit
Bug 34146: Do not allow multiple copies to crash server
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Wed, 28 Jun 2023 14:14:51 +0000 (14:14 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 17 Jul 2023 14:57:38 +0000 (15:57 +0100)
commit4945626e32cf5387694485261f26a3f18588704c
treea15cdee88f033af9e8e4fa2bf02b9b61e0109beb
parentef5422bbca8ebacee3448af309d6a91a6922bf08
Bug 34146: Do not allow multiple copies to crash server

Currently hardcoded to 1000.
Can be refined later. Let's first prevent this kind of accidents.

Test plan:
Add additem.pl. Edit the 1000 to 2. Restart all.
Add 3 multiple copies. Notice that you got 2.
Revert your code change.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 2eba689a5a5db2ac6a747c927d6daf01e7c64002)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
cataloguing/additem.pl
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt