diff --git a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js b/koha-tmpl/intranet-tmpl/prog/js/cataloging.js index 39bcf6f150..f33f716164 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js +++ b/koha-tmpl/intranet-tmpl/prog/js/cataloging.js @@ -330,7 +330,7 @@ function CloneField(index, hideMarc, advancedMARCEditor) { // do nothing if label does not exist. } - // setting its '+' and '-' buttons + // setting its '+', '-' and 'buttonDot' buttons try { var anchors = divs[i].getElementsByTagName("a"); for (var j = 0; j < anchors.length; j++) { @@ -352,6 +352,13 @@ function CloneField(index, hideMarc, advancedMARCEditor) { divs[i].getAttribute("id") + "'); return false;" ); + } else if ( + anchors[j].getAttribute("id").match(/^buttonDot/) + ) { + anchors[j].setAttribute( + "id", + anchors[j].getAttribute("id") + new_key + ); } } } catch (e) {