Skip to content

Commit a455664

Browse files
committed
Fix bug where selected options were not saved correctly
1 parent 71775d1 commit a455664

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

list_predefined_options.module

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function list_predefined_options_form_field_storage_config_edit_form_alter(&$for
6060
'#description' => t('If left empty, the value of this field will be determined by the %function function.', ['%function' => $allowed_values_function]),
6161
'#options' => $plugin->getListOptions($field),
6262
'#multiple' => TRUE,
63-
'#default_value' => $allowed_values,
63+
'#default_value' => array_keys($allowed_values),
6464
];
6565
$form['settings']['allowed_values_function']['#description'] = FALSE;
6666
}

0 commit comments

Comments
 (0)