From 007bef7bd0087cf473d65ddd30476781cdb0d3bb Mon Sep 17 00:00:00 2001 From: colemanw Date: Mon, 2 Oct 2023 12:05:04 -0400 Subject: [PATCH] ContactSummary - Prevent excessive/infinite refreshing of related tabs --- CRM/Contact/Form/Relationship.php | 4 ---- CRM/Member/Page/Tab.php | 1 - 2 files changed, 5 deletions(-) diff --git a/CRM/Contact/Form/Relationship.php b/CRM/Contact/Form/Relationship.php index 47116d7d17..46f69186b9 100644 --- a/CRM/Contact/Form/Relationship.php +++ b/CRM/Contact/Form/Relationship.php @@ -403,10 +403,6 @@ class CRM_Contact_Form_Relationship extends CRM_Core_Form { // Refresh contact tabs which might have been affected $this->ajaxResponse = [ 'reloadBlocks' => ['#crm-contactinfo-content'], - 'updateTabs' => [ - '#tab_member' => CRM_Contact_BAO_Contact::getCountComponent('membership', $this->_contactId), - '#tab_contribute' => CRM_Contact_BAO_Contact::getCountComponent('contribution', $this->_contactId), - ], ]; } diff --git a/CRM/Member/Page/Tab.php b/CRM/Member/Page/Tab.php index 2433005403..e6c543f1cd 100644 --- a/CRM/Member/Page/Tab.php +++ b/CRM/Member/Page/Tab.php @@ -240,7 +240,6 @@ class CRM_Member_Page_Tab extends CRM_Core_Page { // Refresh other tabs with related data $this->ajaxResponse['updateTabs'] = [ '#tab_activity' => CRM_Contact_BAO_Contact::getCountComponent('activity', $this->_contactId), - '#tab_rel' => CRM_Contact_BAO_Contact::getCountComponent('rel', $this->_contactId), ]; if (CRM_Core_Permission::access('CiviContribute')) { $this->ajaxResponse['updateTabs']['#tab_contribute'] = CRM_Contact_BAO_Contact::getCountComponent('contribution', $this->_contactId); -- 2.25.1