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:
parent
afcb9d0277
commit
7ca0614808
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue