Skip to content
Browse files

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

Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
(cherry picked from commit c3abbed)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
  • Loading branch information...
1 parent 05f1a92 commit 604216acf6f173d7576a47395aceeebc87b0d493 Ian Walls committed with cnighswonger Nov 4, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 members/member.pl
View
2 members/member.pl
@@ -104,7 +104,7 @@
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) {

0 comments on commit 604216a

Please sign in to comment.
Something went wrong with that request. Please try again.