From: Ivan Kohler <ivan@freeside.biz>
Date: Thu, 2 Feb 2017 16:43:14 +0000 (-0800)
Subject: default pages of 100 entries
X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=2eba3bb70e579c6799241e2d7d9df681febc8cdd

default pages of 100 entries
---

diff --git a/httemplate/search/cust_main.cgi b/httemplate/search/cust_main.cgi
index b6aa0fa6d..b2c977ad2 100755
--- a/httemplate/search/cust_main.cgi
+++ b/httemplate/search/cust_main.cgi
@@ -332,7 +332,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;
 
diff --git a/httemplate/search/elements/grouped-search/html b/httemplate/search/elements/grouped-search/html
index 28d00404b..c1fd9bd5e 100644
--- a/httemplate/search/elements/grouped-search/html
+++ b/httemplate/search/elements/grouped-search/html
@@ -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;
 }
diff --git a/httemplate/search/elements/search.html b/httemplate/search/elements/search.html
index 4ef8c25d3..7f4bbf812 100644
--- a/httemplate/search/elements/search.html
+++ b/httemplate/search/elements/search.html
@@ -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 {