Browse Source

Bug 19524: Use existing logged_in_user variable

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
18.11.x
Kyle Hall 3 years ago
committed by Nick Clemens
parent
commit
9b1316ffee
  1. 2
      koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt
  2. 5
      patron_lists/lists.pl

2
koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt

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

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

Loading…
Cancel
Save