Skip to content
Snippets Groups Projects
Commit d942d345 authored by samuelsov's avatar samuelsov
Browse files

#4186 regression for Contact Reference Autocomplete

parent e17089e3
Branches
Tags
No related merge requests found
......@@ -1068,7 +1068,7 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField {
);
}
if ($field->data_type == 'EntityReference') {
elseif ($field->data_type == 'EntityReference') {
$fieldAttributes['entity'] = $field->fk_entity;
$element = $qf->addAutocomplete($elementName, $label, $fieldAttributes, $useRequired && !$search);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment