ContactSummary - Prevent excessive/infinite refreshing of related tabs
authorcolemanw <coleman@civicrm.org>
Mon, 2 Oct 2023 16:05:04 +0000 (12:05 -0400)
committercolemanw <coleman@civicrm.org>
Wed, 4 Oct 2023 00:52:21 +0000 (20:52 -0400)
CRM/Contact/Form/Relationship.php
CRM/Member/Page/Tab.php

index 47116d7d17592d1fafa632cdb103052aced48c7b..46f69186b9b1ce4b0998bcedf4859af7f6ed4fdf 100644 (file)
@@ -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),
-      ],
     ];
   }
 
index 2433005403ac6e437789db1e9bd2b2fdb455caf7..e6c543f1cd6681551663ddf03a09c3e623febb21 100644 (file)
@@ -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);