From 308344e64cfb1c16bc4018c431ee8ef1239babb4 Mon Sep 17 00:00:00 2001 From: Fridolyn SOMERS Date: Thu, 27 Sep 2012 10:14:55 +0200 Subject: [PATCH] Bug 7455: Authority subfields are cloned in the wrong field (follow-up 3) Signed-off-by: Jared Camins-Esakov --- koha-tmpl/intranet-tmpl/prog/en/js/cataloging.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/cataloging.js b/koha-tmpl/intranet-tmpl/prog/en/js/cataloging.js index a2b304a..e604bdc 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/cataloging.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/cataloging.js @@ -87,13 +87,11 @@ function CloneField(index, hideMarc, advancedMARCEditor) { var divs = clone.getElementsByTagName('div'); - if(hideMarc == '0') { - // No indicator if hide_marc - // setting a new name for the new indicator - for(var i=0; i < 2; i++) { - var indicator = clone.getElementsByTagName('input')[i]; - indicator.setAttribute('name',indicator.getAttribute('name')+new_key); - } + // if hide_marc, indicators are hidden fields + // setting a new name for the new indicator + for(var i=0; i < 2; i++) { + var indicator = clone.getElementsByTagName('input')[i]; + indicator.setAttribute('name',indicator.getAttribute('name')+new_key); } // settings all subfields -- 1.7.9.5