Bug 19524: Use existing logged_in_user variable
authorKyle M Hall <kyle@bywatersolutions.com>
Mon, 16 Jul 2018 11:54:49 +0000 (07:54 -0400)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 18 Jul 2018 16:49:30 +0000 (16:49 +0000)
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt
patron_lists/lists.pl

index dcf3ca5..b6057a6 100644 (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>
index 8b2a97f..a5cdf2b 100755 (executable)
@@ -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 );