Bug 21529: (bug 13618 follow-up) Display print notices with HTML tags
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 22 Oct 2018 20:52:46 +0000 (17:52 -0300)
committerJesse Maseto <jesse@bywatersolution.com>
Fri, 7 Dec 2018 18:46:15 +0000 (18:46 +0000)
Replace a wrong html filter with raw.

Test plan:
Define a HOLD or DISCHARGE notice template, with html tags.
Generate them and confirm that html tags are displayed (which restore
the existing behaviour prior to bug 13618)

Signed-off-by: Andrew Isherwood <andrew.isherwood@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit b704a1adfc3fcee739194d7d6cb79800ba991e51)

Signed-off-by: Jesse Maseto <jesse@bywatersolution.com>

koha-tmpl/intranet-tmpl/prog/en/modules/batch/print-notices.tt

index 75fbf97..7b3c09f 100644 (file)
@@ -19,7 +19,7 @@
 <body id="batch_print-notices" class="batch">
     [% FOREACH message IN messages %]
     <div class="message">
-        <pre>[% message.content %]</pre>
+        <pre>[% message.content | $raw %]</pre>
     </div>
     [% END %]
 </body>