Bug 8683

Summary: Acq: Clear button doesn't clear all item fields
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: AcquisitionsAssignee: Jonathan Druart <jonathan.druart>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P5 - low CC: fridolin.somers, gmcharlt, jonathan.druart, tomascohen
Version: Main   
Hardware: All   
OS: All   
See Also: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8425
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Bug 8683: Clear button doesn't clear all item fields
[SIGNED-OFF] Bug 8683: Clear button doesn't clear all item fields
[PASSED QA] Bug 8683: Clear button doesn't clear all item fields

Description Katrin Fischer 2012-08-24 06:31:00 UTC
UniqueItemFields: barcode
AcqCreateItem: placing an order
Autobarcode: 1, 2, 3...

When you add items to a new order, the clear link doesn't work for some of the fields. 

It doesn't work for:
- date acquired
- barcode

Maybe because of the plugins linked to those fields?
Comment 1 Jonathan Druart 2013-11-13 10:36:22 UTC Comment hidden (obsolete)
Comment 2 Owen Leonard 2013-11-18 17:31:04 UTC Comment hidden (obsolete)
Comment 3 Katrin Fischer 2013-11-19 22:20:14 UTC
Created attachment 23047 [details] [review]
[PASSED QA] Bug 8683: Clear button doesn't clear all item fields

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).
Comment 4 Galen Charlton 2013-12-10 03:38:50 UTC
Pushed to master.  Thanks, Jonathan!
Comment 5 Fridolin Somers 2013-12-24 09:47:01 UTC
Patch pushed to 3.14.x, will be in 3.14.2.
Comment 6 Tomás Cohen Arazi 2014-01-13 15:28:36 UTC
This patch has been pushed to 3.12.x, will be in 3.12.9.

Thanks Jonathan!