Bugzilla – Attachment 6195 Details for
Bug 5945
can't search patron's email anymore
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed Patch
0001-Bug-5945-email-not-searchable-in-patron-search.patch (text/plain), 1.28 KB, created by
Ian Walls
on 2011-11-04 10:36:09 UTC
(
hide
)
Description:
Proposed Patch
Filename:
MIME Type:
Creator:
Ian Walls
Created:
2011-11-04 10:36:09 UTC
Size:
1.28 KB
patch
obsolete
>From e5c3f0642958256b48650835161e91ef723df4e8 Mon Sep 17 00:00:00 2001 >From: Ian Walls <ian.walls@bywatersolutions.com> >Date: Fri, 4 Nov 2011 06:26:01 -0400 >Subject: [PATCH] Bug 5945: email not searchable in patron search > >Adds 'email' to valid search parameters in members/member.pl > >To test: >1. give a patron a unique email address in your test database >2. search on the full email; should work >3. search on the part of the email before the domain; should work >--- > members/member.pl | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/members/member.pl b/members/member.pl >index e2a6ef5..d759c31 100755 >--- a/members/member.pl >+++ b/members/member.pl >@@ -104,7 +104,7 @@ my ($count,$results); > if ($member || keys %$patron) { > #($results)=Search($member || $patron,{surname=>1,firstname=>1},[$from,$to],undef,["firstname","surname","email","othernames"] ); > my $search_scope = ( $quicksearch ? "field_start_with" : "start_with" ); >- ($results) = Search( $member || $patron, \@orderby, undef, undef, [ "firstname", "surname", "othernames", "cardnumber", "userid" ], $search_scope ); >+ ($results) = Search( $member || $patron, \@orderby, undef, undef, [ "firstname", "surname", "othernames", "cardnumber", "userid", "email" ], $search_scope ); > } > > if ($results) { >-- >1.7.4 >
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 5945
:
6195
|
6223