Skip to content

Commit

Permalink
Merge pull request #25813 from samuelsov/5.60
Browse files Browse the repository at this point in the history
dev/core#4186 regression for Contact Reference Autocomplete
  • Loading branch information
eileenmcnaughton authored Mar 14, 2023
2 parents e17089e + d942d34 commit ff32212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Core/BAO/CustomField.php
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,7 @@ public static function addQuickFormElement(
);

}
if ($field->data_type == 'EntityReference') {
elseif ($field->data_type == 'EntityReference') {
$fieldAttributes['entity'] = $field->fk_entity;
$element = $qf->addAutocomplete($elementName, $label, $fieldAttributes, $useRequired && !$search);
}
Expand Down

0 comments on commit ff32212

Please sign in to comment.