From 7278c86eebb04b568bf0b1e7b519b22319ac86d7 Mon Sep 17 00:00:00 2001 From: Brian Shaughnessy Date: Tue, 23 Jul 2013 08:12:06 -0400 Subject: [PATCH] CRM-13099 full text row count --- CRM/Contact/Form/Search/Custom/FullText.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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"; -- 2.25.1