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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 3 Jul 2023 17:51:32 +0000 (14:51 -0300)
commit2eba689a5a5db2ac6a747c927d6daf01e7c64002
treeb2a14629c87cb5f6a8980b992e14b519584c3924
parent252753f84f53a33f3fd3bd4bf3fb8ae02b53ede7
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>
cataloguing/additem.pl
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt