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 c3abbedebe)
Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
This commit is contained in:
parent
4db9c13ab5
commit
319aaca81f
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue