Commit 2f957104 authored by webchick's avatar webchick
Browse files

#564606 by mathiaz.sk: Fixed notice in field UI.

parent a6e88a92
......@@ -1285,7 +1285,7 @@ function field_ui_field_edit_form_submit($form, &$form_state) {
// Move the default value from the sample widget to the default value field.
if (isset($instance_values['default_value_widget'])) {
$langcode = $instance_values['default_value_widget'][$field_name]['#language'];
$langcode = $form['instance']['default_value_widget'][$field_name]['#language'];
$instance_values['default_value'] = $instance_values['default_value_widget'][$field_name][$langcode];
unset($instance_values['default_value_widget']);
}
......
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