Bugzilla – Attachment 161644 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.44 KB, created by
Kyle M Hall (khall)
on 2024-01-30 14:46:00 UTC
(
hide
)
Description:
Bug 35941: (QA follow-up) Tidy clubs-tab.pl
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2024-01-30 14:46:00 UTC
Size:
1.44 KB
patch
obsolete
>From bff007304c78f6b4791f8b1e57d22508f7a804c0 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> >--- > 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.30.2
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