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', $this,
$this->_activityId, 0, $this->_activityTypeId
);
}
$entitySubType = !empty($values['case_type_id']) ? $values['case_type_id'] : NULL;
$this->assign('caseTypeID', $entitySubType);
- $groupTree = &CRM_Core_BAO_CustomGroup::getTree('Case',
+ $groupTree = CRM_Core_BAO_CustomGroup::getTree('Case',
$this,
$this->_caseID,
NULL,
$this->_subTypeID = CRM_Utils_Request::retrieve('subType', 'Positive', $this, TRUE);
$this->_contactID = CRM_Utils_Request::retrieve('cid', 'Positive', $this, TRUE);
- $groupTree = &CRM_Core_BAO_CustomGroup::getTree('Case',
+ $groupTree = CRM_Core_BAO_CustomGroup::getTree('Case',
$this,
$this->_entityID,
$this->_groupID,
if ($this->_cdType || $this->_multiRecordDisplay == 'single') {
if ($this->_copyValueId) {
// cached tree is fetched
- $groupTree = &CRM_Core_BAO_CustomGroup::getTree($this->_type,
+ $groupTree = CRM_Core_BAO_CustomGroup::getTree($this->_type,
$this,
$this->_entityId,
$this->_groupID
return $customDefaultValue;
}
- $groupTree = &CRM_Core_BAO_CustomGroup::getTree($this->_contactType,
+ $groupTree = CRM_Core_BAO_CustomGroup::getTree($this->_contactType,
$this,
$this->_tableID,
$this->_groupID,
if (empty($_POST['hidden_custom_group_count'])) {
// custom data building in edit mode (required to handle multi-value)
- $groupTree = &CRM_Core_BAO_CustomGroup::getTree($this->_contactType, $this, $this->_tableID,
+ $groupTree = CRM_Core_BAO_CustomGroup::getTree($this->_contactType, $this, $this->_tableID,
$this->_groupID, $this->_contactSubType
);
$customValueCount = CRM_Core_BAO_CustomGroup::buildCustomDataView($this, $groupTree, TRUE, $this->_groupID, NULL, NULL, $this->_tableID);
);
//Add custom fields to columns array for inclusion in export
- $groupTree = &CRM_Core_BAO_CustomGroup::getTree('Activity', $form, NULL,
+ $groupTree = CRM_Core_BAO_CustomGroup::getTree('Activity', $form, NULL,
NULL, '', NULL
);
//custom groups Inline
$entityType = CRM_Contact_BAO_Contact::getContactType($contactId);
$entitySubType = CRM_Contact_BAO_Contact::getContactSubType($contactId);
- $groupTree = &CRM_Core_BAO_CustomGroup::getTree($entityType, $this, $contactId,
+ $groupTree = CRM_Core_BAO_CustomGroup::getTree($entityType, $this, $contactId,
$cgId, $entitySubType
);
$details = CRM_Core_BAO_CustomGroup::buildCustomDataView($this, $groupTree, FALSE, NULL, NULL, NULL, $contactId);
foreach ($allRoleIDs as $k => $v) {
$roleGroupTree = CRM_Core_BAO_CustomGroup::getTree('Participant', $this, $participantID, NULL, $v, $roleCustomDataTypeID);
- $eventGroupTree = &CRM_Core_BAO_CustomGroup::getTree('Participant', $this, $participantID, NULL,
+ $eventGroupTree = CRM_Core_BAO_CustomGroup::getTree('Participant', $this, $participantID, NULL,
$values[$participantID]['event_id'], $eventNameCustomDataTypeID
);
$eventTypeID = CRM_Core_DAO::getFieldValue("CRM_Event_DAO_Event", $values[$participantID]['event_id'], 'event_type_id', 'id');
$this->assign('attachment', $attachment);
$grantType = CRM_Core_DAO::getFieldValue("CRM_Grant_DAO_Grant", $this->_id, "grant_type_id");
- $groupTree = &CRM_Core_BAO_CustomGroup::getTree("Grant", $this, $this->_id, 0, $grantType);
+ $groupTree = CRM_Core_BAO_CustomGroup::getTree("Grant", $this, $this->_id, 0, $grantType);
CRM_Core_BAO_CustomGroup::buildCustomDataView($this, $groupTree, FALSE, NULL, NULL, NULL, $this->_id);
$this->assign('id', $this->_id);