Skip to content

Commit 968fe23

Browse files
author
Flavian Sierk
committed
[Form] fixes empty file-inputs get treated as extra field
1 parent 2e2a36c commit 968fe23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Form/Form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ public function submit($submittedData, $clearMissing = true)
546546

547547
foreach ($this->children as $name => $child) {
548548
$fieldValue = null;
549-
if (isset($submittedData[$name])) {
549+
if (array_key_exists($name, $submittedData)) {
550550
$fieldValue = $submittedData[$name];
551551
unset($submittedData[$name]);
552552
}

0 commit comments

Comments
 (0)