default pages of 100 entries
authorIvan Kohler <ivan@freeside.biz>
Thu, 2 Feb 2017 16:43:11 +0000 (08:43 -0800)
committerIvan Kohler <ivan@freeside.biz>
Thu, 2 Feb 2017 16:43:11 +0000 (08:43 -0800)
httemplate/search/cust_main.cgi
httemplate/search/elements/grouped-search/html
httemplate/search/elements/search.html

index da6c89d..7439efe 100755 (executable)
@@ -333,7 +333,7 @@ die "access denied"
   unless $curuser->access_right('List all customers');
 
 my $conf = new FS::Conf;
-my $maxrecords = $conf->config('maxsearchrecordsperpage');
+my $maxrecords = $conf->config('maxsearchrecordsperpage') || 100;
 # summarize more than this many services of the same svcpart
 my $large_pkg_size = $conf->config('cust_pkg-large_pkg_size') || 0;
 
index 28d0040..c1fd9bd 100644 (file)
@@ -34,7 +34,7 @@ my $footer = $group_info->{group_footers}[$curr_group];
 my $total_footer =  $group_info->{total_footer} || [];
 # pagination
 my ($limit, $offset);
-my $maxrecords = $conf->config('maxsearchrecordsperpage') || 50;
+my $maxrecords = $conf->config('maxsearchrecordsperpage') || 100;
 if ( $cgi->param('maxrecords') =~ /^(\d+)$/ ) {
   $maxrecords = $1;
 }
index 0f71218..8658774 100644 (file)
@@ -383,7 +383,7 @@ unless ( $type =~ /^(csv|xml|\w*.xls)$/) {
     #setup some pagination things if we're in html mode
 
     my $conf = new FS::Conf;
-    $confmax = $conf->config('maxsearchrecordsperpage');
+    $confmax = $conf->config('maxsearchrecordsperpage') || 100;
     if ( $cgi->param('maxrecords') =~ /^(\d+)$/ ) {
       $maxrecords = $1;
     } else {