From a98d39f1ade9d9ad8d7dfd7fb70d1a4b8c0f5cce Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Tue, 2 Feb 2016 18:49:21 +0530 Subject: [PATCH] CRM-17918 -- set the scope for dataTable --- CRM/Profile/Page/MultipleRecordFieldsListing.php | 2 +- templates/CRM/Profile/Page/MultipleRecordFieldsListing.tpl | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CRM/Profile/Page/MultipleRecordFieldsListing.php b/CRM/Profile/Page/MultipleRecordFieldsListing.php index b37349b8e5..ae46a19c15 100644 --- a/CRM/Profile/Page/MultipleRecordFieldsListing.php +++ b/CRM/Profile/Page/MultipleRecordFieldsListing.php @@ -389,7 +389,7 @@ class CRM_Profile_Page_MultipleRecordFieldsListing extends CRM_Core_Page_Basic { $actionParams['cid'] = $actionParams['entityID'] = $this->_contactId; $actionParams['recId'] = $recId; $actionParams['type'] = $this->_contactType; - $actionParams['cgcount'] = $cgcount; + $actionParams['cgcount'] = empty($DTparams['sort']) ? $cgcount : $recId; $actionParams['newCgCount'] = $newCgCount; // DELETE action links diff --git a/templates/CRM/Profile/Page/MultipleRecordFieldsListing.tpl b/templates/CRM/Profile/Page/MultipleRecordFieldsListing.tpl index 31c560c43b..2b07f7f7bf 100644 --- a/templates/CRM/Profile/Page/MultipleRecordFieldsListing.tpl +++ b/templates/CRM/Profile/Page/MultipleRecordFieldsListing.tpl @@ -35,7 +35,7 @@
{strip} - +
{if $pageViewType eq 'customDataView'} @@ -52,6 +52,7 @@