Bug 15469: Same fix for the "entire record" tab
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 7 Jan 2016 08:29:40 +0000 (08:29 +0000)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Thu, 14 Jan 2016 17:02:49 +0000 (17:02 +0000)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search.inc

index 164e20f..d410dcc 100644 (file)
         <input type="hidden" name="type" value="intranet" />
         <select name="authtypecode">
         [% IF (marcflavour == 'UNIMARC' ) %]<option value="">All authority types</option>[% END %]
-        [% FOREACH authtypesloo IN authtypesloop %]
-            [% IF ( authtypesloo.selected ) %]
-            <option value="[% authtypesloo.value %]" selected="selected">[% authtypesloo.authtypetext %]</option>
+        [% FOREACH authority_type IN authority_types %]
+            [% IF authority_type.authtypecode == authtypecode %]
+            <option value="[% authority_type.authtypecode %]" selected="selected">[% authority_type.authtypetext %]</option>
             [% ELSE %]
-            <option value="[% authtypesloo.value %]">[% authtypesloo.authtypetext %]</option>
+            <option value="[% authority_type.authtypecode %]">[% authority_type.authtypetext %]</option>
             [% END %]
         [% END %]
         </select>