Bug 8683: ensure clear button clears all item fields on order form
authorJonathan Druart <jonathan.druart@biblibre.com>
Wed, 13 Nov 2013 10:33:05 +0000 (11:33 +0100)
committerFridolin SOMERS <fridolin.somers@biblibre.com>
Tue, 24 Dec 2013 09:45:29 +0000 (10:45 +0100)
commit842724659c9ac3b6dd1fbf312d8a07ac00fa43c5
treeb9b9b728a7d7971c08d1241589165bf14c7b3fd8
parent1e3602de9f0fe495e5e1931b04b6f2f06d04fb66
Bug 8683: ensure clear button clears all item fields on order form

The clear js function parses input text, but input filled to a plugin
does not contain the type attribute.

Test plan:
- fill the barcode field to the barcode plugin
- go on the new order page
- verify the barcode plugin works as before
- verify the clear link clears the barcode field and all others fields.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Works as expected, passes all tests and QA script.
Template change only.
Barcode and date acquired are now also cleared with the
'clear' link.

But: it only works when you enter a barcode manually currently,
because the AutoBarcode functionality is broken on master (bug 11273).

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit f3b28a5d8ad381bbe5b3edce994e0d45ee96f920)
Signed-off-by: Fridolin SOMERS <fridolin.somers@biblibre.com>
C4/Items.pm