From 11df3a82482ca33e8c3f22d18384ea691335cc0c Mon Sep 17 00:00:00 2001 From: David Vogt Date: Fri, 22 Apr 2022 16:05:34 +0200 Subject: [PATCH] TASK: on formRuntime initialization do not overwrite formState values for non existend request arguments --- Classes/Core/Runtime/FormRuntime.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Classes/Core/Runtime/FormRuntime.php b/Classes/Core/Runtime/FormRuntime.php index 543e706..4543231 100644 --- a/Classes/Core/Runtime/FormRuntime.php +++ b/Classes/Core/Runtime/FormRuntime.php @@ -283,6 +283,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;