// 1. this custom search has slightly different structure ,
// 2. we are in constructor right now,
// we 'll use a small hack -
- $rowCount = CRM_Utils_Pager::ROWCOUNT;
- $pageId = CRM_Utils_Array::value('crmPID', $_REQUEST);
- $pageId = $pageId ? $pageId : 1;
+ $rowCount = CRM_Utils_Array::value('crmRowCount', $_REQUEST, CRM_Utils_Pager::ROWCOUNT);
+ $pageId = CRM_Utils_Array::value('crmPID', $_REQUEST, 1);
$offset = ($pageId - 1) * $rowCount;
$this->_limitClause = NULL;
$this->_limitRowClause = " LIMIT $rowCount";