Skip to content

Commit

Permalink
Merge pull request #155 from punktDeForks/feature/no-null-values-on-i…
Browse files Browse the repository at this point in the history
…nitialization

TASK: on formRuntime initialization do not overwrite formState values for non existend request arguments
  • Loading branch information
daniellienert authored Jun 7, 2022
2 parents b88f8d2 + 11df3a8 commit 73c6e14
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Classes/Core/Runtime/FormRuntime.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,11 @@ protected function mapAndValidatePage(Page $page)
$pageFormValues = [];
foreach ($page->getElementsRecursively() as $element) {
$value = Arrays::getValueByPath($requestArguments, $element->getIdentifier());

if ($value === null) {
continue;
}

$element->onSubmit($this, $value);

$pageFormValues[$element->getIdentifier()] = $value;
Expand Down

0 comments on commit 73c6e14

Please sign in to comment.