Permalink
Browse files

LLK #19092241 in patron search results, respect syspref PatronsPerPage

  • Loading branch information...
1 parent c349c16 commit c347aaf2107620f57bb46e74d82de2f21c4d8c24 @hgq hgq committed Sep 30, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 members/member.pl
View
@@ -36,7 +36,7 @@
my $input = new CGI;
my $quicksearch = $input->param('quicksearch');
my $startfrom = $input->param('startfrom')||1;
-my $resultsperpage = $input->param('resultsperpage')||C4::Context->preference("PatronsPerPage")||20;
+my $resultsperpage = C4::Context->preference("PatronsPerPage")|| $input->param('resultsperpage') || 20;
my ($template, $loggedinuser, $cookie);
if($quicksearch){
@@ -192,7 +192,6 @@
else {
my $type = (length($member) == 1) ? 'simple' : 'advanced';
my $startfrom = $input->param('startfrom') // 1;
- my $resultsperpage = $input->param('resultsperpage') // 20;
my $offset = ($startfrom-1) * $resultsperpage;
my $limits
= {

0 comments on commit c347aaf

Please sign in to comment.