Skip to content
Snippets Groups Projects
Commit e3e0ba4b authored by eileen's avatar eileen
Browse files

Remove long-noisily deprecated if clause

parent 164f71ae
Branches
No related tags found
No related merge requests found
......@@ -129,15 +129,6 @@ class CRM_Contact_BAO_Contact extends CRM_Contact_DAO_Contact implements Civi\Co
}
}
if (isset($params['preferred_communication_method']) && is_array($params['preferred_communication_method'])) {
if (!empty($params['preferred_communication_method']) && empty($params['preferred_communication_method'][0])) {
CRM_Core_Error::deprecatedWarning(' Form layer formatting should never get to the BAO');
CRM_Utils_Array::formatArrayKeys($params['preferred_communication_method']);
$contact->preferred_communication_method = CRM_Utils_Array::implodePadded($params['preferred_communication_method']);
unset($params['preferred_communication_method']);
}
}
$defaults = ['source' => $params['contact_source'] ?? NULL];
if ($params['contact_type'] === 'Organization' && isset($params['organization_name'])) {
$defaults['display_name'] = $params['organization_name'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment