]> 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)
committerMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Tue, 18 Jul 2023 13:11:35 +0000 (13:11 +0000)
commit58cbb8f450a3fad0af118a326d0202fd2fdb4359
treeecabe7eb9712e03ee5f50adf33900387666c1834
parentc1f054023e46f6b1d2826f09ff5934c123a1f0a8
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>
(cherry picked from commit 4945626e32cf5387694485261f26a3f18588704c)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
cataloguing/additem.pl
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt