Commit 38d39bc0 authored by alexpott's avatar alexpott

Issue #2319819 by jhodgdon, hueman: Fixed Default value heading missing from Field UI form.

parent 9399c98a
......@@ -140,12 +140,12 @@ public function buildForm(array $form, FormStateInterface $form_state, FieldInst
// Add handling for default value.
if ($element = $items->defaultValuesForm($form, $form_state)) {
$element += array(
$element = array_merge($element , array(
'#type' => 'details',
'#title' => $this->t('Default value'),
'#open' => TRUE,
'#description' => $this->t('The default value for this field, used when creating new content.'),
);
));
$form['instance']['default_value'] = $element;
}
......
......@@ -144,6 +144,7 @@ function updateField() {
$edit = array(
'instance[settings][test_instance_setting]' => $string,
);
$this->assertText(t('Default value'), 'Default value heading is shown');
$this->drupalPostForm(NULL, $edit, t('Save settings'));
// Assert the field settings are correct.
......
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