Update Pledge tab
authorColeman Watts <coleman@civicrm.org>
Thu, 13 Mar 2014 14:35:36 +0000 (10:35 -0400)
committerColeman Watts <coleman@civicrm.org>
Thu, 13 Mar 2014 14:35:36 +0000 (10:35 -0400)
CRM/Pledge/Page/Tab.php

index 22b08977261167a454ac9748b40d2922e6718130..efc9b67090b299f537bf2c47d5273d62d19ce5fe 100644 (file)
@@ -55,6 +55,10 @@ class CRM_Pledge_Page_Tab extends CRM_Core_Page {
       $displayName = CRM_Contact_BAO_Contact::displayName($this->_contactId);
       $this->assign('displayName', $displayName);
       $this->ajaxResponse['tabCount'] = CRM_Contact_BAO_Contact::getCountComponent('pledge', $this->_contactId);
+      // Refresh other tabs with related data
+      $this->ajaxResponse['updateTabs'] = array(
+        '#tab_activity' => CRM_Contact_BAO_Contact::getCountComponent('activity', $this->_contactId),
+      );
     }
   }