X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Felements%2Fsearch.html;h=5058a1ac7f8c0975453db5b2b17b839a80e22a45;hp=0f71218c217b6f32580d0ffb0967d09117b26728;hb=f2dca165c20e75f7a6048d048f353b56d9f2d621;hpb=0929e7aec153632691a64ae8755c082090fd1de5 diff --git a/httemplate/search/elements/search.html b/httemplate/search/elements/search.html index 0f71218c2..5058a1ac7 100644 --- a/httemplate/search/elements/search.html +++ b/httemplate/search/elements/search.html @@ -16,7 +16,7 @@ Example: # (deprecated, will be singularlized # simplisticly) - #literal SQL query string (deprecated?) or qsearch hashref or arrayref + #literal SQL query string (corner cases only) or qsearch hashref or arrayref #of qsearch hashrefs for a union of qsearches 'query' => { 'table' => 'tablename', @@ -34,7 +34,7 @@ Example: }, # "select * from tablename"; - #required unless 'query' is an SQL query string (shouldn't be...) + #required (now even if 'query' is an SQL query string) 'count_query' => 'SELECT COUNT(*) FROM tablename', ### @@ -131,7 +131,7 @@ Example: 'agent_pos' => 3, # optional position (starting from 0) to # insert an Agent column (query needs to be a # qsearch hashref and header & fields need to - # be defined)cust_pkg_susp.html + # be defined) # sort, link & display properties for fields @@ -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 {