CRM-13099 full text row count
authorBrian Shaughnessy <brian@lcdservices.biz>
Tue, 23 Jul 2013 12:12:06 +0000 (08:12 -0400)
committerBrian Shaughnessy <brian@lcdservices.biz>
Tue, 23 Jul 2013 12:12:06 +0000 (08:12 -0400)
CRM/Contact/Form/Search/Custom/FullText.php

index c56719df91f70e66bcd6ff2ea1e33a3fc240febe..a7e18615ad44eeba437aedf4899646d9dc287f82 100644 (file)
@@ -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";