@@ -, +, @@
copies in add items page
---------
0) Back up your DB. -- because a backup is always good!
1) Log in to staff client
2) Navigate to any biblio details
(e.g. cgi-bin/koha/catalogue/detail.pl?biblionumber=#####)
3) Click the 'Edit' dropdown button.
4) Click 'Edit items'.
5) Click 'Add multiple items'
6) Enter a crazy high number (e.g. 999)
7) Click 'Add'
-- Koha just adds it! YIKES!
8) Apply patch
9) Repeat steps 5-7
-- Koha does not add the items.
-- Koha does add the items.
---
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt
@@ -76,6 +76,10 @@ function CheckMultipleAdd(f) {
alert(_("Please enter a number of items to create."));
return false;
}
+
+ if (f>99) {
+ return confirm(_("More than 99 copies will be added. Should they be added?"));
+ }
}
function Dopop(link,i) {
defaultvalue=document.forms[0].field_value[i].value;
@@ -241,7 +245,7 @@ $(document).ready(function() {
-
+
--