Bug 22586: IntranetReportsHomeHTML no longer renders as HTML on reports-home.pl
authorLucas Gass <lucas@bywatersolutions.com>
Tue, 26 Mar 2019 11:17:31 +0000 (11:17 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 29 Mar 2019 11:29:05 +0000 (11:29 +0000)
As of 18.11 the IntranetReportsHomeHTML syspref no longer renders HTML
on report-home.pl. I think this is being filtered wrong in the template.

Test Plan:

1) Edit IntranetReportsHomeHTML, set to "<p>Test</p>"
2) View a report, note that you see the html p tags are displayed
litterly
3) Apply this patch
4) Reload the page
5) Note the p tags are rendered as html

Signed-off-by: George Williams <george@nekls.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/reports/reports-home.tt

index 20be414..e4901bb 100644 (file)
@@ -1,4 +1,5 @@
 [% USE Koha %]
+[% USE raw %]
 [% INCLUDE 'doc-head-open.inc' %]
 <title>Koha &rsaquo; Reports</title>
 [% INCLUDE 'doc-head-close.inc' %]
@@ -89,7 +90,7 @@
 
 </div>
     <div class="col-md-12" id="intranet-reports-home-html">
-        [% Koha.Preference('IntranetReportsHomeHTML') | html %]
+        [% Koha.Preference('IntranetReportsHomeHTML') | $raw %]
     </div>
 </div>
 [% INCLUDE 'intranet-bottom.inc' %]