From: Brian Shaughnessy Date: Tue, 23 Jul 2013 12:12:06 +0000 (-0400) Subject: CRM-13099 full text row count X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7278c86eebb04b568bf0b1e7b519b22319ac86d7;p=civicrm-core.git CRM-13099 full text row count --- diff --git a/CRM/Contact/Form/Search/Custom/FullText.php b/CRM/Contact/Form/Search/Custom/FullText.php index c56719df91..a7e18615ad 100644 --- a/CRM/Contact/Form/Search/Custom/FullText.php +++ b/CRM/Contact/Form/Search/Custom/FullText.php @@ -112,9 +112,8 @@ class CRM_Contact_Form_Search_Custom_FullText implements CRM_Contact_Form_Search // 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";