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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 1 Apr 2019 14:08:05 +0000 (15:08 +0100)
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>
(cherry picked from commit 7aaa10e0922b21f1c9ed40ede0d3dfc0a63c2832)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.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' %]