From 9f435c0d9e9757b161f5a91fc0a5b173fa58be44 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Mon, 16 Jul 2018 07:54:49 -0400 Subject: [PATCH] Bug 19524: Use existing logged_in_user variable --- koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt | 2 +- patron_lists/lists.pl | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt index dcf3ca549f..b6057a6c54 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt @@ -39,7 +39,7 @@ [% FOREACH l IN lists %] - [% SET shared_by_other = l.owner.id != logged_in_user %] + [% SET shared_by_other = l.owner.id != logged_in_user.id %] [% l.name |html%] [% l.patron_list_patrons_rs.count || 0 %] diff --git a/patron_lists/lists.pl b/patron_lists/lists.pl index 8b2a97fa98..a5cdf2b74c 100755 --- a/patron_lists/lists.pl +++ b/patron_lists/lists.pl @@ -39,9 +39,6 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( my @lists = GetPatronLists(); -$template->param( - lists => \@lists, - logged_in_user => $loggedinuser, -); +$template->param( lists => \@lists ); output_html_with_http_headers( $cgi, $cookie, $template->output ); -- 2.11.0