Fix for Bug 6458 - incorrect parsing result in translation processing / clone-rules
authorOwen Leonard <oleonard@myacpl.org>
Fri, 26 Aug 2011 19:56:00 +0000 (15:56 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Tue, 13 Sep 2011 22:08:35 +0000 (10:08 +1200)
Fixing improperly nested template logic inside HTML tags in
clone circulation rules form.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/clone-rules.tt

index c9d60c1..7bbe27b 100644 (file)
                <select name="frombranch" id="frombranch">
                        <option value="">Default</option>
                        [% FOREACH branchloo IN branchloop %]
-                       <option value="[% branchloo.value %]" [% IF ( branchloo.selected ) %]selected[% END %]>[% branchloo.branchname %]</option>
+                               [% IF ( branchloo.selected ) %]
+                                       <option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>
+                               [% ELSE %]
+                                       <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>
+                               [% END %]
                        [% END %]
                </select>
                [% IF ( tobranch ) %]<input type="hidden" name="tobranch" value="[% tobranch %]" />[% END %]
                <select name="tobranch" id="tobranch">
                        <option value="">Default</option>
                        [% FOREACH branchloo IN branchloop %]
-                       <option value="[% branchloo.value %]" [% IF ( branchloo.selected ) %]selected[% END %]>[% branchloo.branchname %]</option>
+                               [% IF ( branchloo.selected ) %]
+                                       <option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>
+                               [% ELSE %]
+                                       <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>
+                               [% END %]
                        [% END %]
                </select>
                [% IF ( frombranch ) %]<input type="hidden" name="frombranch" value="[% frombranch %]" />[% END %]