Bug 20691: (follow-up) Fix qa fails
authorAgustin Moyano <agustinmoyano@theke.io>
Thu, 23 May 2019 03:15:47 +0000 (00:15 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 11 Sep 2019 07:53:55 +0000 (08:53 +0100)
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

koha-tmpl/opac-tmpl/bootstrap/en/includes/account-table.inc
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt

index c51efbe..cab63bc 100644 (file)
 [% END %]
 
 [% FOREACH r IN relatives %]
-    <h3 id="g[% r.patron.id %]">[% r.patron.firstname %] [% r.patron.surname %]'s fines and charges</h3>
+    <h3 id="g[% r.patron.id | html %]">[% r.patron.firstname | html %] [% r.patron.surname | html %]'s fines and charges</h3>
 
-    <table class="table table-bordered table-striped" id="finestable-[% r.id %]">
+    <table class="table table-bordered table-striped" id="finestable-[% r.id | html %]">
         <thead>
             <tr>
                 <th class="title-string">Date</th>
             [% FOREACH a IN r.accountlines %]
                 [% SET account_sum = account_sum + a.amountoutstanding %]
                 <tr>
-                    <td><span title="[% a.date %]">[% a.date | $KohaDates %]</span></td>
+                    <td><span title="[% a.date | html %]">[% a.date | $KohaDates %]</span></td>
                     <td>
                         [% PROCESS account_type_description account=a %]
-                        [%- IF a.payment_type %], [% AuthorisedValues.GetByCode('PAYMENT_TYPE', a.payment_type, 1) %][% END %]
-                        [%- IF a.description %], [% a.description %][% END %]
-                        [% IF a.itemnumber %]([% a.item.biblio.title %])[% END %]
+                        [%- IF a.payment_type %], [% AuthorisedValues.GetByCode('PAYMENT_TYPE', a.payment_type, 1) | html %][% END %]
+                        [%- IF a.description %], [% a.description | html %][% END %]
+                        [% IF a.itemnumber %]([% a.item.biblio.title | html %])[% END %]
                     </td>
                     [% IF ( a.amount < 0 ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% a.amount | $Price %]</td>
                     [% IF ( a.amountoutstanding < 0 ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% a.amountoutstanding | $Price %]</td>
index 339f0b8..66a47ce 100644 (file)
                                         <tbody>
                                             [% FOREACH r IN relatives_with_fines %]
                                             <tr>
-                                                <td>[% r.firstname %] [% r.surname %] currently owes fines and charges amounting to:</td>
-                                                <td><a href="/cgi-bin/koha/opac-account.pl#g[% r.id %]">[% r.account.balance | $Price %]</a></td>
+                                                <td>[% r.firstname | html %] [% r.surname | html %] currently owes fines and charges amounting to:</td>
+                                                <td><a href="/cgi-bin/koha/opac-account.pl#g[% r.id | uri %]">[% r.account.balance | $Price %]</a></td>
                                             </tr>
                                             [% END %]
                                         </tbody>