From: jitendrapurohit Date: Tue, 2 Feb 2016 13:19:21 +0000 (+0530) Subject: CRM-17918 -- set the scope for dataTable X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a98d39f1ade9d9ad8d7dfd7fb70d1a4b8c0f5cce;p=civicrm-core.git CRM-17918 -- set the scope for dataTable --- 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 @@