Allow custom fields of type Autocomplete-Select to be multivalued
}
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],
],