Upgrading C4/Members in regards with C4/SQLHelper
Adding cardnumber as a search criteria
This commit is contained in:
parent
70a6b86c74
commit
6a6f65c41c
2 changed files with 2 additions and 2 deletions
|
@ -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 );
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue