From 691e91ee2a96449c0c821dffe9ecbfda9ce78ff5 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Wed, 17 Oct 2018 13:29:20 +0200 Subject: [PATCH] Bug 11708: Add missing TT filters and fix perlcritic errors --- acqui/basketgroup.pl | 1 - .../prog/en/modules/acqui/basketgroups.tt | 49 ++++++++++--------- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/acqui/basketgroup.pl b/acqui/basketgroup.pl index 70c3e5cccf..fed5a394c8 100755 --- a/acqui/basketgroup.pl +++ b/acqui/basketgroup.pl @@ -355,7 +355,6 @@ if ($op eq 'mod_basket') { # template will know if basketgroup must be displayed or edited, depending on # the value of closed key -my $bookseller = Koha::Acquisition::Booksellers->find($booksellerid); my $basketgroupid = $input->param('basketgroupid'); my $billingplace; my $deliveryplace; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroups.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroups.tt index 67e7cb0b67..9c18fe1a80 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroups.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroups.tt @@ -1,6 +1,7 @@ [% USE Asset %] [% USE Branches %] [% USE KohaDates %] +[% USE raw %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] @@ -10,7 +11,7 @@ Koha › Basket groups [% END %] [% INCLUDE 'doc-head-close.inc' %] -[% Asset.css('css/datatables.css') %] +[% Asset.css('css/datatables.css') | $raw %] [% INCLUDE 'header.inc' %] @@ -22,7 +23,7 @@ Acquisitions › [% IF (bookseller) %] - [% bookseller.name |html %] + [% bookseller.name | html %] › [% END %] Basket groups @@ -35,11 +36,11 @@ [% IF bookseller %]
-

Basket groups for [% bookseller.name %]

+

Basket groups for [% bookseller.name | html %]

[% END %] [% IF basketgroups.size > 0 %] @@ -62,39 +63,39 @@ [% IF ( basketgroup.name ) %] - [% basketgroup.name %] + [% basketgroup.name | html %] [% ELSE %] - Basket group no. [% basketgroup.id %] + Basket group no. [% basketgroup.id | $raw %] [% END %] - [% basketgroup.vendor.name %] - [% Branches.GetName(basketgroup.billingplace) %] + [% basketgroup.vendor.name | html %] + [% Branches.GetName(basketgroup.billingplace) | html %] [% IF (basketgroup.freedeliveryplace) %] - [% basketgroup.freedeliveryplace %] + [% basketgroup.freedeliveryplace | html %] [% ELSE %] - [% Branches.GetName(basketgroup.deliveryplace) %] + [% Branches.GetName(basketgroup.deliveryplace) | html %] [% END %] - [% basketgroup.baskets_count %] - [% basketgroup.ordered_titles_count %] - [% basketgroup.received_titles_count %] + [% basketgroup.baskets_count | $raw %] + [% basketgroup.ordered_titles_count | $raw %] + [% basketgroup.received_titles_count | $raw %] [% basketgroup.closeddate | $KohaDates %]