Bug 21541: Use raw filter for report results
authorNick Clemens <nick@bywatersolutions.com>
Wed, 10 Oct 2018 16:30:15 +0000 (16:30 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Sat, 13 Oct 2018 10:28:24 +0000 (07:28 -0300)
To test:
 1 - Create new report
 SELECT CONCAT('<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=',borrowernumber,'">',"",firstname,"",surname,'</a>')
 AS people
 FROM borrowers
 2 - Run this report
 3 - Note the results contain raw text, they are not hyperlinks
 4 - Apply patch
 5 - Reload the results
 6 - They should now be links

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt

index 62005e6..f432cf0 100644 (file)
@@ -747,7 +747,7 @@ canned reports and writing custom SQL reports.</p>
                         [% IF header_row.$place.cell == 'itemnumber' %]
                             <input type="hidden" name="[% header_row.$place.cell | html %]" value="[% cells.cell | html %]" />
                         [% END %]
-                        <td>[% cells.cell | html %]</td>
+                        <td>[% cells.cell | $raw %]</td>
                     [% END %]
                 </tr>
             [% END %]