From 6a6f65c41c8e62c97729598617b750c14011d89d Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Sat, 19 Sep 2009 12:54:32 +0200 Subject: [PATCH] Upgrading C4/Members in regards with C4/SQLHelper Adding cardnumber as a search criteria --- C4/Members.pm | 2 +- members/member.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Members.pm b/C4/Members.pm index bd82c71bf4..4b525f0623 100644 --- a/C4/Members.pm +++ b/C4/Members.pm @@ -257,7 +257,7 @@ sub Search { my $matching_records = C4::Members::Attributes::SearchIdMatchingAttribute($filter); push @filters,@$matching_records; } - $searchtype||="wide"; + $searchtype||="start_with"; my $data=SearchInTable("borrowers",\@filters,$orderby,$limit,$columns_out,$search_on_fields,$searchtype); return ( $data ); diff --git a/members/member.pl b/members/member.pl index 73af8ae08e..e7f297b9e1 100755 --- a/members/member.pl +++ b/members/member.pl @@ -99,7 +99,7 @@ push @searchpatron, $patron if (keys %$patron); my $from= ($startfrom-1)*$resultsperpage; my $to=$from+$resultsperpage; #($results)=Search(\@searchpatron,{surname=>1,firstname=>1},[$from,$to],undef,["firstname","surname","email","othernames"] ) if (@searchpatron); - ($results)=Search(\@searchpatron,{surname=>1,firstname=>1},undef,undef,["firstname","surname","email","othernames"] ) if (@searchpatron); + ($results)=Search(\@searchpatron,{surname=>1,firstname=>1},undef,undef,["firstname","surname","email","othernames","cardnumber"] ) if (@searchpatron); if ($results){ $count =scalar(@$results); } -- 2.39.5