</configsection>
</case>
</configswitch>
+ <configinteger name="searchlimit" desc="Maximum number of records to include in CDR searches. Does not apply to graphs.">5000
+ </configinteger>
</configsection>
<configstring name="ttf_font" desc="Full path to a True-Type font to use when rendering the graph" required="false" />
'locked' => false,
'shared' => false,
'type' => 'number',
- 'desc' => _("The columns to be displayed on the Call Detail Review screen")
-);
-
-$_prefs['resultlimit'] = array(
- 'value' => 100,
- 'locked' => false,
- 'shared' => false,
- 'type' => 'number',
- 'desc' => _("Limit the number of CDR results when searching to this number")
+ 'desc' => _("Maximum number of call records to show per search result page.")
);
$_prefs['columns'] = array(
$rowstart = 0;
}
-$numrows = $prefs->getValue('resultlimit');
-if (!is_numeric($numrows)) {
- $notification->push(_("Invalid number for rows for search limit. Using 100."));
- $numrows = 100;
-}
-
$form = new SearchCDRForm(_("Search Call Detail Records"), $vars);
if ($form->isSubmitted() && $form->validate($vars, true)) {
$accountcode = $vars->get('accountcode');
$notification->push(_("Invalid date requested."));
} else {
$data = $operator->driver->getRecords($start, $end, $accountcode,
- $dcontext, $rowstart, $numrows);
+ $dcontext, $rowstart,
+ $GLOBALS['conf']['storage']['searchlimit']);
if (is_a($data, 'PEAR_Error')) {
$notification->push($data);
$data = array();