View | Details | Raw Unified | Return to bug 9759
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/js/cataloging.js (-3 / +2 lines)
Lines 342-349 function UnCloneField(index) { Link Here
342
    } else {
342
    } else {
343
        // unclone a subfield, check if there will remain one subfield
343
        // unclone a subfield, check if there will remain one subfield
344
        var subfieldCode = getFieldAndSubfieldCode(index);
344
        var subfieldCode = getFieldAndSubfieldCode(index);
345
        // subfield divs with id begining with original field and subfield field code
345
        // subfield divs of same field with id begining with original field and subfield field code
346
        var cloneSubfields = $('.subfield_line[id^="subfield'+subfieldCode+'"]');
346
        var cloneSubfields = $(original).parent().children('.subfield_line[id^="subfield'+subfieldCode+'"]');
347
        if (cloneSubfields.length > 1) {
347
        if (cloneSubfields.length > 1) {
348
            canUnclone = true;
348
            canUnclone = true;
349
        }
349
        }
350
- 

Return to bug 9759