projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e17089e
)
dev/core#4186 regression for Contact Reference Autocomplete
author
Samuel Vanhove
<samuel@symbiotic.coop>
Tue, 14 Mar 2023 21:27:24 +0000
(17:27 -0400)
committer
Samuel Vanhove
<samuel@symbiotic.coop>
Tue, 14 Mar 2023 21:27:24 +0000
(17:27 -0400)
CRM/Core/BAO/CustomField.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Core/BAO/CustomField.php
b/CRM/Core/BAO/CustomField.php
index 67cc1142d5a81c1f9f2cab3a8bda9ae6c717a8b5..cf05c109b2e9c0700f6e1a073e8eabe792da7873 100644
(file)
--- a/
CRM/Core/BAO/CustomField.php
+++ b/
CRM/Core/BAO/CustomField.php
@@
-1068,7
+1068,7
@@
class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField {
);
}
- if ($field->data_type == 'EntityReference') {
+
else
if ($field->data_type == 'EntityReference') {
$fieldAttributes['entity'] = $field->fk_entity;
$element = $qf->addAutocomplete($elementName, $label, $fieldAttributes, $useRequired && !$search);
}