if (isset($this->_activityId)) {
if ($this->_context !== 'standalone') {
- $this->assign('target_contact_value',
- CRM_Utils_Array::value('target_contact_value', $defaults)
- );
- $this->assign('assignee_contact_value',
- CRM_Utils_Array::value('assignee_contact_value', $defaults)
- );
+ $this->assign('target_contact_value', $defaults['target_contact_value'] ?? NULL);
+ $this->assign('assignee_contact_value', $defaults['assignee_contact_value'] ?? NULL);
}
// Fixme: why are we getting the wrong keys from upstream?
}
if ($this->_action & (CRM_Core_Action::DELETE | CRM_Core_Action::RENEW)) {
- $this->assign('delName', CRM_Utils_Array::value('subject', $defaults));
+ $this->assign('delName', $defaults['subject'] ?? NULL);
}
if ($this->_activityTypeFile) {
$this->addEntityRef($field, $values['label'], $attribute, $required);
}
else {
- $this->add($values['type'], $field, $values['label'], $attribute, $required, CRM_Utils_Array::value('extra', $values));
+ $this->add($values['type'], $field, $values['label'], $attribute, $required, $values['extra'] ?? NULL);
}
}
}
// CRM-7362 --add campaigns.
- CRM_Campaign_BAO_Campaign::addCampaign($this, CRM_Utils_Array::value('campaign_id', $this->_values));
+ CRM_Campaign_BAO_Campaign::addCampaign($this, $this->_values['campaign_id'] ?? NULL);
// Add engagement level CRM-7775
$buildEngagementLevel = FALSE;
$row['engagement_level'] = CRM_Utils_Array::value($engagementLevel, $engagementLevels, $engagementLevel);
}
- $actionLinks = $this->actionLinks(CRM_Utils_Array::value('activity_type_id', $row),
- CRM_Utils_Array::value('source_record_id', $row),
+ $actionLinks = $this->actionLinks($row['activity_type_id'],
+ $row['source_record_id'] ?? NULL,
// CRM-3553
!empty($row['mailingId']),
- CRM_Utils_Array::value('activity_id', $row),
+ $row['activity_id'] ?? NULL,
$this->_key
);