Merge pull request #10716 from jitendrapurohit/CRM-20933
[civicrm-core.git] / CRM / Activity / Form / Activity.php
index d0b6dad586a68ee646e7877f25f092ed264e5ac3..071e3c1bad94d60c9de8422c07902cb917360858 100644 (file)
@@ -377,7 +377,7 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task {
 
     if ($this->_action & CRM_Core_Action::VIEW) {
       // Get the tree of custom fields.
-      $this->_groupTree = CRM_Core_BAO_CustomGroup::getTree('Activity', $this,
+      $this->_groupTree = CRM_Core_BAO_CustomGroup::getTree('Activity', NULL,
         $this->_activityId, 0, $this->_activityTypeId
       );
     }