Bug 29859: Fix currencies display
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 11 Feb 2022 09:24:15 +0000 (10:24 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 11 Feb 2022 19:11:39 +0000 (09:11 -1000)
Oops!

Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt

index b8d41fc..0285a2f 100644 (file)
         <input type="hidden" name="suggestionid" value="[% suggestionid | html %]" />
         <input type="hidden" name="import_batch_id" value="[% import_batch_id | html %]" />
 
-        [% FOREACH c IN currencies.count %]
+        [% FOREACH c IN currencies %]
             <input type="hidden" id="currency_rate_[% c.currency | html %]"  name="[% c.currency | html %]" value="[% c.rate | html %]" />
         [% END %]
 
                <li>
                        <label for="currency">Currency:</label>
             <select name="currency" id="currency" onchange="updateCosts();">
-                [% FOREACH c IN currencies.count %]
+                [% FOREACH c IN currencies %]
                     [% IF ordernumber and c.currency == currency or not ordernumber and c.currency == vendor_currency %]
                         <option value="[% c.currency | html %]" selected="selected">[% c.currency | html %]</option>
                     [% ELSIF not c.archived %]