From: Seamus Lee Date: Wed, 14 Oct 2020 09:06:05 +0000 (+1100) Subject: Merge pull request #18449 from colemanw/multiValueAutocomplete X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=58ebeee33f4e52250bc43447a4fb571529660de0;p=civicrm-core.git Merge pull request #18449 from colemanw/multiValueAutocomplete Allow custom fields of type Autocomplete-Select to be multivalued --- 58ebeee33f4e52250bc43447a4fb571529660de0 diff --cc CRM/Core/BAO/CustomField.php index 43b0588bac,afba04879b..66a5cf26a2 --- a/CRM/Core/BAO/CustomField.php +++ b/CRM/Core/BAO/CustomField.php @@@ -890,10 -915,10 +890,10 @@@ class CRM_Core_BAO_CustomField extends } else { // FIXME: This won't work with customFieldOptions hook - $attributes += [ + $fieldAttributes += [ 'entity' => 'OptionValue', 'placeholder' => $placeholder, - 'multiple' => $search, + 'multiple' => $search ? TRUE : !empty($field->serialize), 'api' => [ 'params' => ['option_group_id' => $field->option_group_id, 'is_active' => 1], ],