diff options
author | Christopher Burger <burgerc@freeside.biz> | 2018-07-27 18:14:31 -0400 |
---|---|---|
committer | Christopher Burger <burgerc@freeside.biz> | 2018-07-27 18:14:31 -0400 |
commit | b548768fbbcdcae4df6f46ac38f0615437a20298 (patch) | |
tree | 7e2f8c97b8f540a30c8574d4eb5af589f4dc15a1 /httemplate/search/elements | |
parent | 25efd7207d9ea9be4bea1093917c0d8dc4b1e87a (diff) |
RT# 77160 - added date search on customer timespan report
Diffstat (limited to 'httemplate/search/elements')
-rw-r--r-- | httemplate/search/elements/search.html | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/httemplate/search/elements/search.html b/httemplate/search/elements/search.html index 0e8c69a51..730a51aa3 100644 --- a/httemplate/search/elements/search.html +++ b/httemplate/search/elements/search.html @@ -389,14 +389,15 @@ 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') || 100; - if ( $cgi->param('maxrecords') =~ /^(\d+)$/ ) { - $maxrecords = $1; - } else { - $maxrecords ||= $confmax; - } - $opt{'disable_maxselect'} ||= $conf->exists('disable_maxselect'); + unless ($opt{'disable_maxselect'}) { + $confmax = $conf->config('maxsearchrecordsperpage') || 100; + if ( $cgi->param('maxrecords') =~ /^(\d+)$/ ) { + $maxrecords = $1; + } else { + $maxrecords ||= $confmax; + } + } $limit = $maxrecords ? "LIMIT $maxrecords" : ''; |