Bugzilla – Attachment 103067 Details for
Bug 25136
PatronSelfRegistrationLibraryList controls both self-reg and self-modification
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25136: join the 2 ifs
Bug-25136-join-the-2-ifs.patch (text/plain), 1.48 KB, created by
Jonathan Druart
on 2020-04-16 09:53:02 UTC
(
hide
)
Description:
Bug 25136: join the 2 ifs
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-04-16 09:53:02 UTC
Size:
1.48 KB
patch
obsolete
>From 6811f66f2835665f489100c8b58b7453ae10d611 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 16 Apr 2020 11:51:32 +0200 >Subject: [PATCH] Bug 25136: join the 2 ifs > >Highlight that we only need this for action="new" > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > opac/opac-memberentry.pl | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 deletions(-) > >diff --git a/opac/opac-memberentry.pl b/opac/opac-memberentry.pl >index 05241589b6..f657b127a4 100755 >--- a/opac/opac-memberentry.pl >+++ b/opac/opac-memberentry.pl >@@ -75,14 +75,14 @@ if ( $action eq q{} ) { > my $mandatory = GetMandatoryFields($action); > > my @libraries = Koha::Libraries->search; >-if ( my @libraries_to_display = split '\|', C4::Context->preference('PatronSelfRegistrationLibraryList') ) { >- if ( $action eq 'new' ) { >- @libraries = map { >- my $b = $_; >- my $branchcode = $_->branchcode; >- ( grep { $_ eq $branchcode } @libraries_to_display ) ? $b : () >- } @libraries; >- } >+if ( $action eq 'new' >+ && ( my @libraries_to_display = split '\|', C4::Context->preference('PatronSelfRegistrationLibraryList') ) >+) { >+ @libraries = map { >+ my $b = $_; >+ my $branchcode = $_->branchcode; >+ ( grep { $_ eq $branchcode } @libraries_to_display ) ? $b : () >+ } @libraries; > } > my ( $min, $max ) = C4::Members::get_cardnumber_length(); > if ( defined $min ) { >-- >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 25136
:
103042
|
103056
|
103066
| 103067