[Koha-patches] [PATCH] Fix for Bug 6458 - incorrect parsing result in translation processing

Owen Leonard oleonard at myacpl.org
Fri Sep 2 16:18:55 CEST 2011


There is template logic in manage-marc-import.tt which is intended
to set the "selected" option for the framework chooser ("Add new
bibliographic records into this framework"). However, I can't see
any place in the code which sends the "selected" variable to the
template, and I can't see any circumstance in which a value would
be passed to the template.

This patch removes the "selected" variable from the template.
---
 .../prog/en/modules/tools/manage-marc-import.tt    |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt
index b5083ae..3890efe 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt
@@ -157,9 +157,7 @@ $(document).ready(function(){
     <select name="framework" id="frameworks">
       <option value="">Default</option>
       [% FOREACH framework IN frameworks %]
-      <option value="[% framework.value %]" [% framework.selected %]>
-      [% framework.label %]
-      </option>
+          <option value="[% framework.value %]">[% framework.label %]</option>
       [% END %]
     </select>
     </fieldset>
-- 
1.7.3



More information about the Koha-patches mailing list