Bugzilla – Attachment 116907 Details for
Bug 27604
PatronSelfRegistrationLibraryList can be bypassed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27604: Deal with empty pref
Bug-27604-Deal-with-empty-pref.patch (text/plain), 996 bytes, created by
Jonathan Druart
on 2021-02-16 08:31:06 UTC
(
hide
)
Description:
Bug 27604: Deal with empty pref
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-02-16 08:31:06 UTC
Size:
996 bytes
patch
obsolete
>From 43a84d07d0c5951b24832c671ad0acbba65a2b9a Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 16 Feb 2021 09:30:20 +0100 >Subject: [PATCH] Bug 27604: Deal with empty pref > >--- > opac/opac-memberentry.pl | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/opac/opac-memberentry.pl b/opac/opac-memberentry.pl >index d11ae31925..c43b4f7640 100755 >--- a/opac/opac-memberentry.pl >+++ b/opac/opac-memberentry.pl >@@ -78,7 +78,8 @@ my $mandatory = GetMandatoryFields($action); > my $params = {}; > if ( $action eq 'create' || $action eq 'new' ) { > my @PatronSelfRegistrationLibraryList = split '\|', C4::Context->preference('PatronSelfRegistrationLibraryList'); >- $params = { branchcode => { -in => \@PatronSelfRegistrationLibraryList } }; >+ $params = { branchcode => { -in => \@PatronSelfRegistrationLibraryList } } >+ if @PatronSelfRegistrationLibraryList; > } > my @libraries = Koha::Libraries->search($params); > >-- >2.20.1
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 27604
:
116271
|
116286
|
116424
|
116425
|
116497
| 116907 |
117020