From a84c86f9589670e1ff06816620acec6f94b51015 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 12 Apr 2021 11:25:35 +0000 Subject: [PATCH] Bug 28135: Replace use of input type number in additem.js This patch corrects in instance where JavaScript is creating an input tag with type "number." To test, apply the patch and make sure the AcqCreateItem system preference is set to "when receiving." - Go to Acquisitions -> Vendor -> Invoices -> Invoice -> Go to receipt page -> Receive. - On the page for receiving items you should see an add item form. - Click the "Add multiple items" button at the bottom of the form. - Test the "Number of items to add" field. It should not accept any input except numbers. --- koha-tmpl/intranet-tmpl/prog/js/additem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/additem.js b/koha-tmpl/intranet-tmpl/prog/js/additem.js index 960ffc36dd..7d80ca8a77 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/additem.js +++ b/koha-tmpl/intranet-tmpl/prog/js/additem.js @@ -182,7 +182,7 @@ function cloneItemBlock(index, unique_item_fields, callback) { buttonPlus += ''; buttonPlus += ''; buttonPlus += ''; -- 2.11.0