Bug 35941: (QA follow-up) Tidy clubs-tab.pl

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 7d2204f2ce0c60263b050c72541c71462527fe5b)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Kyle M Hall 2024-01-30 14:32:12 +00:00 committed by Fridolin Somers
parent afcb9d0277
commit 7ca0614808
1 changed files with 6 additions and 6 deletions

View File

@ -21,7 +21,7 @@ use Modern::Perl;
use CGI;
use C4::Auth qw( get_template_and_user );
use C4::Auth qw( get_template_and_user );
use C4::Output qw( output_html_with_http_headers );
use Koha::Patrons;
@ -29,16 +29,16 @@ my $cgi = CGI->new;
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{
template_name => "clubs/clubs-tab.tt",
query => $cgi,
type => "opac",
template_name => "clubs/clubs-tab.tt",
query => $cgi,
type => "opac",
}
);
my $patron = Koha::Patrons->find( $loggedinuser );
my $patron = Koha::Patrons->find($loggedinuser);
my @enrollments = $patron->get_club_enrollments->as_list;
my @clubs = $patron->get_enrollable_clubs( my $opac = 1 )->as_list;
my @clubs = $patron->get_enrollable_clubs( my $opac = 1 )->as_list;
$template->param(
enrollments => \@enrollments,