Bug 12165: (follow-up) display record title
authorJonathan Druart <jonathan.druart@biblibre.com>
Thu, 8 May 2014 14:55:49 +0000 (16:55 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 23 May 2014 13:46:08 +0000 (13:46 +0000)
The code introduced by bug 2546 uses an undefined variable (line.title).
It should be ACCOUNT_LINE.title.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt
koha-tmpl/opac-tmpl/prog/en/modules/opac-account.tt

index 256a6d3..bbab1d0 100644 (file)
@@ -63,7 +63,7 @@
                                             [% CASE %][% ACCOUNT_LINE.accounttype %]
                                           [%- END -%]
                                           [%- IF ACCOUNT_LINE.description %], [% ACCOUNT_LINE.description %][% END %]
-                                          [% IF line.title %]([% line.title |html_entity %])[% END %]
+                                          [% IF ACCOUNT_LINE.title %]([% ACCOUNT_LINE.title %])[% END %]
                                         </td>
                                         [% IF ( ACCOUNT_LINE.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% ACCOUNT_LINE.amount %]</td>
                                         [% IF ( ACCOUNT_LINE.amountoutstandingcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% ACCOUNT_LINE.amountoutstanding %]</td>
index c26668c..0fc80ad 100644 (file)
@@ -54,7 +54,7 @@
                             [% CASE %][% ACCOUNT_LINE.accounttype %]
                           [%- END -%]
                           [%- IF ACCOUNT_LINE.description %], [% ACCOUNT_LINE.description %][% END %]
-                          [% IF line.title %]([% line.title |html_entity %])[% END %]
+                          [% IF ACCOUNT_LINE.title %]([% ACCOUNT_LINE.title %])[% END %]
                         </td>
                         [% IF ( ACCOUNT_LINE.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% ACCOUNT_LINE.amount %]</td>
                         [% IF ( ACCOUNT_LINE.amountoutstandingcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% ACCOUNT_LINE.amountoutstanding %]</td>