Bugzilla – Attachment 163106 Details for
Bug 36302
Patron search from search bar broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36302: Remove unused code
Bug-36302-Remove-unused-code.patch (text/plain), 1.47 KB, created by
Pedro Amorim
on 2024-03-13 10:32:04 UTC
(
hide
)
Description:
Bug 36302: Remove unused code
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2024-03-13 10:32:04 UTC
Size:
1.47 KB
patch
obsolete
>From f4466c5cb2eed29302dc3e773528676c92d79bd8 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Wed, 13 Mar 2024 10:31:37 +0000 >Subject: [PATCH] Bug 36302: Remove unused code > >Please can someone tell me why we need this code? >Inititally I thought this is where the redirect was coming from, but it's coming from JS, not here, so why do we need this? >--- > members/member.pl | 18 ------------------ > 1 file changed, 18 deletions(-) > >diff --git a/members/member.pl b/members/member.pl >index 1f5bd5693ab..c53dd7ea70b 100755 >--- a/members/member.pl >+++ b/members/member.pl >@@ -46,24 +46,6 @@ my $searchmember = $input->param('searchmember'); > my $quicksearch = $input->param('quicksearch') // 0; > my $circsearch = $input->param('circsearch') // 0; > >-if ( $quicksearch and $searchmember && !$circsearch ) { >- my $branchcode; >- if ( C4::Context::only_my_library ) { >- my $userenv = C4::Context->userenv; >- $branchcode = $userenv->{'branch'}; >- } >- my $patron = Koha::Patrons->find( { cardnumber => $searchmember } ); >- 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; >- } >-} >- > my $searchfieldstype = $input->param('searchfieldstype') || 'standard'; > my $searchtype = $input->param('searchtype'); > >-- >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 36302
:
163096
|
163099
|
163105
|
163106
|
163108
|
163109
|
163113
|
163121
|
163122
|
163207
|
163226
|
163487
|
163917
|
163918
|
163974
|
164002
|
164003
|
164004
|
164005