Permalink
Browse files

LLK #19181255 relax circ search, no limit

  • Loading branch information...
1 parent 1804845 commit 882d9b989549baec98b9830518be9d85eb1316fd @hgq hgq committed Oct 3, 2011
Showing with 10 additions and 3 deletions.
  1. +3 −2 C4/Members.pm
  2. +7 −1 circ/circulation.pl
View
5 C4/Members.pm
@@ -274,8 +274,9 @@ sub SearchMember {
$query =~ s/COUNT\(borrowernumber\)/*/xms;
$query .= " ORDER BY $orderby ";
$query .= sprintf(' LIMIT %d,%d',
- $limits->{offset}//0,
- $limits->{limit}//C4::Context->preference('PatronsPerPage'));
+ $limits->{offset} //0,
+ $limits->{limit} //C4::Context->preference('PatronsPerPage'))
+ if $limits->{limit};
$data = $dbh->selectall_arrayref($query, {Slice => {}}, @bind);
View
8 circ/circulation.pl
@@ -287,7 +287,13 @@ sub FormatFinesSummary {
my $borrowerslist;
my $message;
if ($findborrower) {
- my ($count, $borrowers) = SearchMember( $findborrower, $orderby );
+ my ($count, $borrowers) = SearchMember(
+ $findborrower,
+ $orderby,
+ undef,
+ undef,
+ {limit=>0}
+ );
my @borrowers = @$borrowers;
if (C4::Context->preference("AddPatronLists")) {
$template->param(

0 comments on commit 882d9b9

Please sign in to comment.