Bugzilla – Attachment 80437 Details for
Bug 21552
RoutingListNote should use raw filter and display HTML unescaped
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21552: Use raw filter for displaying RoutingListNote
Bug-21552-Use-raw-filter-for-displaying-RoutingLis.patch (text/plain), 2.08 KB, created by
Katrin Fischer
on 2018-10-11 22:10:57 UTC
(
hide
)
Description:
Bug 21552: Use raw filter for displaying RoutingListNote
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2018-10-11 22:10:57 UTC
Size:
2.08 KB
patch
obsolete
>From fe21c1b372c462db5e9a7e188617a3d0485c96fe Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer.83@web.de> >Date: Tue, 9 Oct 2018 12:22:35 +0000 >Subject: [PATCH] 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. >--- > .../intranet-tmpl/prog/en/modules/serials/routing-preview-slip.tt | 4 +++- > serials/routing-preview.pl | 1 - > 2 files changed, 3 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/routing-preview-slip.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/routing-preview-slip.tt >index 98f7548..9caefcc 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/routing-preview-slip.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/routing-preview-slip.tt >@@ -1,3 +1,5 @@ >+[% USE Koha %] >+[% USE raw %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Serials › Routing slip preview</title> >@@ -30,7 +32,7 @@ > </table> > > <div id="routingnotes"> >- <p id="generalroutingnote">[% generalroutingnote | html %]</p> >+ <p id="generalroutingnote">[% Koha.Preference('RoutingListNote') | $raw %]</p> > <p id="routingnote">[% routingnotes | html %]</p> > </div> > >diff --git a/serials/routing-preview.pl b/serials/routing-preview.pl >index 015005c..85fc784 100755 >--- a/serials/routing-preview.pl >+++ b/serials/routing-preview.pl >@@ -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 > ); >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 21552
:
80437
|
80564
|
80645