Koha/koha-tmpl/intranet-tmpl/prog/en/js
Fridolyn SOMERS 8f7929d615 Bug 9759: last subfield can be deleted
In authorities and biblios editors, a repeatable subfield can be deleted (small icon next to input).
Clone subfields are really deleted but last existing subfield is just set empty instead of deleted.
But when same field is repeated, the last subfield can be deleted.

This patch corrects this, last subfield of a field, even repeated, can not be deleted.

Test plan :
- Edit a biblio
- Choose a repeatable field with a repeatable subfield : ie 600 and $x
- Edit 600, enter a text in $x : ie "subA"
- Clone $x
- Delete second $x
=> second $x is deleted
- Delete first $x
=> $x is not deleted but set empty
- Edit 600, enter a text in $x : ie "subA"
- Clone 600
- Edit second 600, enter a text in $x : ie "subB"
- Clone $x of second 600
- Delete second $x of second 600
=> second $x of second 600 is deleted
- Delete first $x of second 600
=> with this patch : first $x of second 600 is set empty
=> without this patch : first $x of second 600 is deleted, second 600 has no $x anymore
Perform same test plan on an authority.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
2013-03-29 22:48:52 -04:00
..
pages Bug 7596 - System prefs editor JS contains untranslatable English string 2013-03-15 19:03:49 -04:00
tinymce
acq.js Bug 8942: Translation process breaks javascript 2013-01-31 11:00:24 -05:00
additem.js Bug 8495: Fix JS error when creating a new order 2012-08-28 17:51:24 +02:00
ajax.js Bug 9797 - Untranslatable strings have returned to ajax.js 2013-03-29 21:44:05 -04:00
background-job-progressbar.js bug 6372: moved background-job.inc to background-job-progressbar.js 2012-05-07 23:00:34 +02:00
basket.js Bug 7368: Removing occurrences of dependant= feature in javascript open calls 2012-11-20 07:23:03 -05:00
cataloging.js Bug 9759: last subfield can be deleted 2013-03-29 22:48:52 -04:00
datatables.js Bug 9431 [Revised] Use DataTables on Patron Category Administration page 2013-03-11 08:46:22 -04:00
jquery.jeditable.mini.js Bug 7977: Adding jEditable minified version 2012-05-24 14:14:00 +02:00
localcovers.js Bug 1633: [SIGNED-OFF] Display local cover images 2012-01-24 11:16:04 +01:00
members.js Bug 9783 - can hit submit twice when adding patrons 2013-03-27 22:58:17 -04:00
staff-global.js Bug 9783 - can hit submit twice when adding patrons 2013-03-27 22:58:17 -04:00
xmlControlfield.js