View | Details | Raw Unified | Return to bug 35941
Collapse All | Expand All

(-)a/opac/clubs/clubs-tab.pl (-7 / +6 lines)
Lines 21-27 use Modern::Perl; Link Here
21
21
22
use CGI;
22
use CGI;
23
23
24
use C4::Auth qw( get_template_and_user );
24
use C4::Auth   qw( get_template_and_user );
25
use C4::Output qw( output_html_with_http_headers );
25
use C4::Output qw( output_html_with_http_headers );
26
use Koha::Patrons;
26
use Koha::Patrons;
27
27
Lines 29-44 my $cgi = CGI->new; Link Here
29
29
30
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
30
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
31
    {
31
    {
32
        template_name   => "clubs/clubs-tab.tt",
32
        template_name => "clubs/clubs-tab.tt",
33
        query           => $cgi,
33
        query         => $cgi,
34
        type            => "opac",
34
        type          => "opac",
35
    }
35
    }
36
);
36
);
37
37
38
my $patron = Koha::Patrons->find( $loggedinuser );
38
my $patron = Koha::Patrons->find($loggedinuser);
39
39
40
my @enrollments = $patron->get_club_enrollments->as_list;
40
my @enrollments = $patron->get_club_enrollments->as_list;
41
my @clubs = $patron->get_enrollable_clubs( my $opac = 1 )->as_list;
41
my @clubs       = $patron->get_enrollable_clubs( my $opac = 1 )->as_list;
42
42
43
$template->param(
43
$template->param(
44
    enrollments => \@enrollments,
44
    enrollments => \@enrollments,
45
- 

Return to bug 35941