From 0e8f685e37c45632c1ed3298b9609c623dca0c37 Mon Sep 17 00:00:00 2001 From: Fridolyn SOMERS Date: Thu, 27 Sep 2012 10:07:52 +0200 Subject: [PATCH] Bug 4381: syspref hide_marc ON results in erroneous behaviour of repeatable fields --- .../prog/en/modules/authorities/authorities.tt | 15 +++++++-------- .../prog/en/modules/cataloguing/addbiblio.tt | 15 +++++++-------- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt index d0c4329..2b065f4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt @@ -192,14 +192,13 @@ function CloneField(index) { var divs = clone.getElementsByTagName('div'); - [% UNLESS ( hide_marc ) %] // 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); - } - [% END %] - + // setting a new name for the new indicator + // if hide_marc, indicator are hidden inputs + for(var i=0; i < 2; i++) { + var indicator = clone.getElementsByTagName('input')[i]; + indicator.setAttribute('name',indicator.getAttribute('name')+new_key); + } + // settings all subfields for(var i=0,divslen = divs.length ; i