Skip to content
Snippets Groups Projects
Verified Commit dbb87e1b authored by Lee Rowlands's avatar Lee Rowlands
Browse files

Issue #3071765 by joelpittet: Field without widget returning NULL instead of...

Issue #3071765 by joelpittet: Field without widget returning NULL instead of array in defaultValuesFormSubmit()
parent 3a87d23f
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -322,6 +322,7 @@ public function defaultValuesFormSubmit(array $element, array &$form, FormStateI
$widget->extractFormValues($this, $element, $form_state);
return $this->getValue();
}
return [];
}
/**
......
......@@ -330,7 +330,7 @@ public function testDefaultValuesFormSubmit() {
$field_list->expects($this->never())
->method('getValue');
$this->assertNull($field_list->defaultValuesFormSubmit([], $form, $form_state));
$this->assertArrayEquals([], $field_list->defaultValuesFormSubmit([], $form, $form_state));
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment