X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Felements%2Fsearch.html;h=209302a5daf5a9894d53bb52bd18f39d5254a0e5;hp=2979eaadc6b52e629cf9ffb325147ebc188f8aca;hb=1af581404eae84707fa1c66e3f455eb433e3b16b;hpb=c39471b25c33e345e79034dc43ad9807d2e6d57d diff --git a/httemplate/search/elements/search.html b/httemplate/search/elements/search.html index 2979eaadc..209302a5d 100644 --- a/httemplate/search/elements/search.html +++ b/httemplate/search/elements/search.html @@ -385,14 +385,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" : '';