Bugzilla – Attachment 161688 Details for
Bug 35941
OPAC user can guess clubs of other users
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35941: (QA follow-up) Tidy clubs-tab.pl
Bug-35941-QA-follow-up-Tidy-clubs-tabpl.patch (text/plain), 1.51 KB, created by
Martin Renvoize (ashimema)
on 2024-01-31 13:50:32 UTC
(
hide
)
Description:
Bug 35941: (QA follow-up) Tidy clubs-tab.pl
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2024-01-31 13:50:32 UTC
Size:
1.51 KB
patch
obsolete
>From bf524bd4041162032514f2a157d59ec0f06fb1b5 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Tue, 30 Jan 2024 14:32:12 +0000 >Subject: [PATCH] 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> >--- > opac/clubs/clubs-tab.pl | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > >diff --git a/opac/clubs/clubs-tab.pl b/opac/clubs/clubs-tab.pl >index 28fcd1ed690..03cc687f2e9 100755 >--- a/opac/clubs/clubs-tab.pl >+++ b/opac/clubs/clubs-tab.pl >@@ -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, >-- >2.43.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35941
:
161637
|
161643
|
161644
|
161687
| 161688