@@ -, +, @@ - 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 - Delete first $x - 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 - Delete first $x of second 600 --- koha-tmpl/intranet-tmpl/prog/en/js/cataloging.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/js/cataloging.js +++ a/koha-tmpl/intranet-tmpl/prog/en/js/cataloging.js @@ -342,8 +342,8 @@ function UnCloneField(index) { } else { // unclone a subfield, check if there will remain one subfield var subfieldCode = getFieldAndSubfieldCode(index); - // subfield divs with id begining with original field and subfield field code - var cloneSubfields = $('.subfield_line[id^="subfield'+subfieldCode+'"]'); + // subfield divs of same field with id begining with original field and subfield field code + var cloneSubfields = $(original).parent().children('.subfield_line[id^="subfield'+subfieldCode+'"]'); if (cloneSubfields.length > 1) { canUnclone = true; } --