diff options
author | ivan <ivan> | 2001-12-03 08:41:43 +0000 |
---|---|---|
committer | ivan <ivan> | 2001-12-03 08:41:43 +0000 |
commit | 4e5a0655072be725acf00394186b93c96bba17ee (patch) | |
tree | b620395d7887ff289e1029839e3d45e2c5c4d2e2 /FS | |
parent | 5c0eff524454c3e66a0fbe90250884d0a7578284 (diff) |
maxsearchrecordsperpage config option
paged implementation of customer browse!
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/Conf.pm | 7 | ||||
-rw-r--r-- | FS/FS/Record.pm | 6 |
2 files changed, 11 insertions, 2 deletions
diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index 0d04cc129..8195fc55e 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -468,6 +468,13 @@ httemplate/docs/config.html # }, { + 'key' => 'maxsearchrecordsperpage', + 'section' => 'UI', + 'description' => 'If set, number of search records to return per page.', + 'type' => 'text', + }, + + { 'key' => 'sendmailconfigpath', 'section' => 'mail', 'description' => 'Sendmail configuration file path. Defaults to `/etc\'. Many newer distributions use `/etc/mail\'.', diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index 6c7a321e6..a04ddb982 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -227,7 +227,7 @@ sub qsearch { $sth->execute( map $record->{$_}, grep defined( $record->{$_} ) && $record->{$_} ne '', @fields - ) or croak "Error executing \"$statement\": ". $dbh->errstr; + ) or croak "Error executing \"$statement\": ". $sth->errstr; $dbh->commit or croak $dbh->errstr if $FS::UID::AutoCommit; if ( eval 'scalar(@FS::'. $table. '::ISA);' ) { @@ -257,13 +257,15 @@ sub qsearch { } -=item jsearch +=item jsearch TABLE, HASHREF, SELECT, EXTRA_SQL, PRIMARY_TABLE, PRIMARY_KEY Experimental JOINed search method. Using this method, you can execute a single SELECT spanning multiple tables, and cache the results for subsequent method calls. Interface will almost definately change in an incompatible fashion. +Arguments: + =cut sub jsearch { |