Bug 19683: Fix authority types in tools/export template
authorDavid Bourgault <david.bourgault@inlibro.com>
Wed, 22 Nov 2017 19:35:27 +0000 (14:35 -0500)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 7 Dec 2017 12:37:09 +0000 (09:37 -0300)
Fixes the bug by correcting the variable names in the template.

To test:
1) Tools > Export > Export authority records
2) Authority Types dropdown is not empty

Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Amended: Changing the export script and unblessing is not needed.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt

index fc9892e..19224f4 100644 (file)
@@ -207,7 +207,7 @@ $(document).ready(function() {
             <select name="authtype" id="authtype">
                 <option value="">-- All --</option>
                 [% FOREACH authority_type IN authority_types %]
-                    <option value="[% authtypeloo.value %]">[% authtypeloo.description %]</option>
+                    <option value="[% authority_type.authtypecode %]">[% authority_type.authtypetext %]</option>
                 [% END %]
             </select>
         </li>