Commit d5d19387 authored by sluc23's avatar sluc23
Browse files

Merge branch 'dmunio-2.x-patch-24654' into '2.x'

Fix ContactReference field.

See merge request !13
parents 08090b61 0035504f
......@@ -921,7 +921,7 @@ LEFT JOIN civicrm_contact {$field['alias']} ON {$field['alias']}.id = {$this->_a
}
elseif ($type == 'String') {
if (isset($field['htmlType'])) {
if (in_array($field['htmlType'], ['Select', 'Autocomplete-Select'])) {
if (in_array($field['htmlType'], ['Select', 'Autocomplete-Select']) && $field['dataType'] != 'ContactReference') {
$options = $this->_getOptionValues($field['name']);
$optionLabels = [];
foreach ($options as $key => $value) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment