From: Kyle M Hall Date: Mon, 16 Jul 2018 11:54:49 +0000 (-0400) Subject: Bug 19524: Use existing logged_in_user variable X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;ds=sidebyside;h=9b1316ffeee76127e891785536d4bb38e0186247;p=koha.git Bug 19524: Use existing logged_in_user variable Signed-off-by: Nick Clemens --- 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 );