[freeside-commits] branch FREESIDE_4_BRANCH updated. 61b3e0076cc6f08d4a00e1cf71ab40277ef17229
Ivan
ivan at 420.am
Thu Feb 2 08:43:14 PST 2017
The branch, FREESIDE_4_BRANCH has been updated
via 61b3e0076cc6f08d4a00e1cf71ab40277ef17229 (commit)
from b2bc6e42d27b8bab7fa58500fe292a921b786854 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 61b3e0076cc6f08d4a00e1cf71ab40277ef17229
Author: Ivan Kohler <ivan at freeside.biz>
Date: Thu Feb 2 08:43:13 2017 -0800
default pages of 100 entries
diff --git a/httemplate/search/cust_main.cgi b/httemplate/search/cust_main.cgi
index da6c89d..7439efe 100755
--- a/httemplate/search/cust_main.cgi
+++ b/httemplate/search/cust_main.cgi
@@ -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;
diff --git a/httemplate/search/elements/grouped-search/html b/httemplate/search/elements/grouped-search/html
index 28d0040..c1fd9bd 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 4ef8c25..7f4bbf8 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 {
-----------------------------------------------------------------------
Summary of changes:
httemplate/search/cust_main.cgi | 2 +-
httemplate/search/elements/grouped-search/html | 2 +-
httemplate/search/elements/search.html | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
More information about the freeside-commits
mailing list