diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/blinddetail-biblio-search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/blinddetail-biblio-search.tt index 169728918c..77a5d5fc80 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/blinddetail-biblio-search.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/blinddetail-biblio-search.tt @@ -33,10 +33,11 @@ } // Sets the good number of form fields for the specified subfield + // Returns false if the cloning failed function SetSubfieldNumber(subfield_name, nb) { // Nothing to do if we only have one value if(nb <= 1) { - return; + return true; } // Find the subfield we want to clone @@ -45,10 +46,16 @@ return this.id.match(re); }); - // Add as many clones as needed - for(var i=0; i