Skip to content

Commit

Permalink
[Form] fixes empty file-inputs get treated as extra field
Browse files Browse the repository at this point in the history
  • Loading branch information
Flavian Sierk committed Jul 25, 2013
1 parent 2e2a36c commit 968fe23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Form/Form.php
Expand Up @@ -546,7 +546,7 @@ public function submit($submittedData, $clearMissing = true)

foreach ($this->children as $name => $child) {
$fieldValue = null;
if (isset($submittedData[$name])) {
if (array_key_exists($name, $submittedData)) {
$fieldValue = $submittedData[$name];
unset($submittedData[$name]);
}
Expand Down

0 comments on commit 968fe23

Please sign in to comment.