Bug 21552: Use raw filter for displaying RoutingListNote

The RoutingListNote system preference works like other prefs
allowing you to insert your own content on the routling list
template using HTML. The default text even uses HTML, so it
looks broken without this patch.

To test:
- Add a subscription
- Add a new routing list to it
- Add some patrons to it
- Save
- preview routing list
- Verify that the note shows and is formatted correctly.

Signed-off-by: Pierre-Marc Thibault <pierre-marc.thibault@inLibro.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit f902041e24)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Katrin Fischer 2018-10-09 12:22:35 +00:00 committed by Martin Renvoize
parent 2cae3d86bd
commit 325ebd2a7d
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
2 changed files with 3 additions and 3 deletions

View File

@ -1,3 +1,4 @@
[% USE Koha %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Serials &rsaquo; Routing slip preview</title>
@ -30,8 +31,8 @@
</table>
<div id="routingnotes">
<p id="generalroutingnote">[% generalroutingnote %]</p>
<p id="routingnote">[% routingnotes %]</p>
<p id="generalroutingnote">[% Koha.Preference('RoutingListNote') %]</p>
<p id="routingnote">[% routingnotes | html %]</p>
</div>
<div id="closewindow" class="noprint"><a class="btn btn-default btn-default" id="print_slip" href="#"><i class="fa fa-print"></i> Print</a> <a class="btn btn-default btn-default close" href="#">Close</a></div>

View File

@ -137,7 +137,6 @@ $template->param(
subscriptionid => $subscriptionid,
memberloop => $memberloop,
routingnotes => $routingnotes,
generalroutingnote => C4::Context->preference('RoutingListNote'),
hasRouting => check_routing($subscriptionid),
(uc(C4::Context->preference("marcflavour"))) => 1
);