Bug 19524: Use existing logged_in_user variable

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Kyle Hall 2018-07-16 07:54:49 -04:00 committed by Nick Clemens
parent e2e0c32701
commit 9b1316ffee
2 changed files with 2 additions and 5 deletions

View file

@ -39,7 +39,7 @@
<tbody>
[% 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 %]
<tr>
<td><a href="/cgi-bin/koha/patron_lists/list.pl?patron_list_id=[% l.patron_list_id %]">[% l.name |html%]</a></td>
<td>[% l.patron_list_patrons_rs.count || 0 %]</td>

View file

@ -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 );