From 64fc4809e9ee40d42413f9a2e33e1e93f53ec3d0 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Sat, 21 Apr 2018 01:07:58 +0000 Subject: [PATCH] Bug 20456: (follow-up) Fix number of subscriptions and position display MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit TT variables needed to be adjusted because of changes from bug 20400. Also: while we want logged_in_user in OPAC, we don't want that in staff. 1) Check the right number of subscriptions is displayed on top of the table 2) check the right position number is display for the routing list Signed-off-by: Séverine QUEUNE Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize --- .../prog/en/modules/members/routing-lists.tt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/routing-lists.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/routing-lists.tt index c79d3bb8c5..0a629ea5ab 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/routing-lists.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/routing-lists.tt @@ -26,19 +26,19 @@ +[% SET routinglists = patron.get_routing_lists %]

[% UNLESS ( routinglists ) %] 0 subscription routing lists -[% ELSIF ( routinglists.size() == 1 ) %] -[% routinglists.size() %] subscription routing list +[% ELSIF ( routinglists.count == 1 ) %] +[% routinglists.count %] subscription routing list [% ELSE %] -[% routinglists.size() %] subscription routing lists +[% routinglists.count %] subscription routing lists [% END %]

-[% SET routinglists = logged_in_user.get_routing_lists %] [% IF ( routinglists ) %] -- 2.39.5