BZ6412 : spaces in note github/bug_6412 origin/new/bug_6412
authorPaul Poulain <paul.poulain@biblibre.com>
Mon, 18 Jul 2011 22:06:00 +0000 (18:06 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Mon, 1 Aug 2011 01:07:18 +0000 (13:07 +1200)
There was an improper T::T <input> construction: the note value contained spaces.

This patch fixes the problem by using a correct [% IF %] construction

Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt

index 4f04ba7..ddc3d41 100644 (file)
        <td>[% loop_pa.description %] [% loop_pa.title |html %]</td>
     <td>
         [% IF ( loop_pa.net_balance ) %]
-        <input type="text" name="note[% loop_pa.i %]" value="
+            <input type="text" name="note[% loop_pa.i %]" value="[% loop_pa.note %]" />
+        [% ELSE %]
+            [% loop_pa.note %]
         [% END %]
-        [% loop_pa.note %]
-        [% IF ( loop_pa.net_balance ) %]" />[% END %]
     </td>
        <td>[% loop_pa.accounttype %]</td>
        <td>[% loop_pa.notify_id %]</td>