Bug 22641: Use raw filter on html slip
authorNick Clemens <nick@bywatersolutions.com>
Sat, 23 Mar 2019 08:13:13 +0000 (08:13 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 10 Apr 2019 20:00:29 +0000 (20:00 +0000)
To test:
Enable SCO
Load a patron
Hit finish, print slip
Note slip shows as raw html
Apply patch
Repeat, get a correctly formatted slip

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

https://bugs.koha-community.org/show_bug.cgi?id=22068

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/printslip.tt

index b81a291..2693dd4 100644 (file)
@@ -7,14 +7,14 @@
 <link rel="shortcut icon" href="[% IF ( OpacFavicon  ) %][% OpacFavicon | url %][% ELSE %][% interface | html %]/[% theme | html %]/images/favicon.ico[% END %]" type="image/x-icon" />
 [% Asset.css("css/print.css") | $raw %]
 [% IF stylesheet %]
-<link rel="stylesheet" type="text/css" href="[% stylesheet | url %]" />
+<link rel="stylesheet" type="text/css" href="[% stylesheet | $raw %]" />
 [% END %]
 
 <!-- JavaScript includes -->
 [% Asset.js("lib/jquery/jquery.js") | $raw %]
 [% Asset.js("js/global.js") | $raw %]
 
-[% INCLUDE 'slip-print.inc' %]
+[% INCLUDE 'slip-print.inc' #printThenClose %]
 
 </head>
 
@@ -25,7 +25,7 @@
                 [% slip | html %]
             </pre>
         [% ELSE %]
-            [% slip | html %]
+            [% slip | $raw %]
         [% END %]
 
     </div>