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

(-)a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js (-3 / +7 lines)
Lines 230-237 function CloneField(index, hideMarc, advancedMARCEditor) { Link Here
230
                }
230
                }
231
            }
231
            }
232
            // when cloning a subfield, re set its label too.
232
            // when cloning a subfield, re set its label too.
233
            var labels = divs[i].getElementsByTagName('label');
233
            try {
234
            labels[0].setAttribute('for', id_input);
234
                var labels = divs[i].getElementsByTagName('label');
235
                labels[0].setAttribute('for', id_input);
236
            }
237
            catch(e) {
238
                // do nothing if label does not exist.
239
            }
235
240
236
            // setting its '+' and '-' buttons
241
            // setting its '+' and '-' buttons
237
            try {
242
            try {
238
- 

Return to bug 27508