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
);
}