Bug 28135: Replace use of input type number in additem.js
authorOwen Leonard <oleonard@myacpl.org>
Mon, 12 Apr 2021 11:25:35 +0000 (11:25 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 11 May 2021 13:37:42 +0000 (15:37 +0200)
commit21658717de3d8da3516eb23d2f7869fc6fe88922
treeb25d3d4704855f1a96b12d604a75cec29d6cbfde
parent91fb5d6a1548f7b270163d18b05467c6fd45a7f0
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.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/js/additem.js