Bugzilla – Attachment 76518 Details for
Bug 20998
Non superlibrarians cannot search for patrons using the quicksearch at the top
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20998: Simplify the conditional statement
Bug-20998-Simplify-the-conditional-statement.patch (text/plain), 1.32 KB, created by
Tomás Cohen Arazi (tcohen)
on 2018-06-27 14:20:54 UTC
(
hide
)
Description:
Bug 20998: Simplify the conditional statement
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2018-06-27 14:20:54 UTC
Size:
1.32 KB
patch
obsolete
>From 78132bbaf99fce40d84ebba387d5abde8a9b62fe Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 26 Jun 2018 12:37:19 -0300 >Subject: [PATCH] Bug 20998: Simplify the conditional statement > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > members/member.pl | 9 +++++++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > >diff --git a/members/member.pl b/members/member.pl >index 2fc7fb462a..11cbc41a32 100755 >--- a/members/member.pl >+++ b/members/member.pl >@@ -53,8 +53,13 @@ if ( $quicksearch and $searchmember ) { > $branchcode = $userenv->{'branch'}; > } > my $patron = Koha::Patrons->find( { cardnumber => $searchmember } ); >- if( ( $branchcode and $patron and $patron->branchcode eq $branchcode ) or ( not $branchcode and $patron ) ){ >- print $input->redirect("/cgi-bin/koha/members/moremember.pl?borrowernumber=" . $patron->borrowernumber); >+ if ( >+ $patron >+ and ( ( $branchcode and $patron->branchcode eq $branchcode ) >+ or ( not $branchcode ) ) >+ ) >+ { >+ print $input->redirect( "/cgi-bin/koha/members/moremember.pl?borrowernumber=" . $patron->borrowernumber ); > exit; > } > } >-- >2.18.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 20998
:
76453
|
76455
|
76456
|
76466
|
76467
|
76517
| 76518