[PATCH 1/1] Bug 7757 - Followup - Move IF outside of html tag
authorPaul Poulain <paul.poulain@biblibre.com>
Thu, 24 May 2012 11:36:47 +0000 (13:36 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Thu, 24 May 2012 11:36:47 +0000 (13:36 +0200)
(patch written by kyle@bywatersolutions.com, see http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=9588

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketheader.tt

index 1f95177..068171e 100644 (file)
@@ -128,9 +128,13 @@ li.list2 {
                 <li>
                     <label for="basketbooksellerid">Vendor</label> &nbsp;
                     <select name="basketbooksellerid" id="basketbooksellerid">
-            [% FOREACH b IN booksellers %]
-                <option value="[% b.id %]" [% IF booksellerid == b.id %] selected="selected"[% END %]>[% b.name %]</option>
-            [% END %]
+                    [% FOREACH b IN booksellers %]
+                        [% IF booksellerid == b.id %]
+                           <option value="[% b.id %]" selected="selected">[% b.name %]</option>
+                        [% ELSE %]
+                           <option value="[% b.id %]">[% b.name %]</option>
+                        [% END %]
+                    [% END %]
             </select>
                 </li>
                 <li>