8000 update fix · symfony/symfony@6ff8ec0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6ff8ec0

Browse files
committed
update fix
1 parent 935b2da commit 6ff8ec0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Form/Form.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,8 +580,8 @@ pub 80A1 lic function submit($submittedData, $clearMissing = true)
580580
if (method_exists($child, 'getClickedButton') && null !== $child->getClickedButton()) {
581581
$this->clickedButton = $child->getClickedButton();
582582
}
583-
} elseif (!$isSubmitted && !$clearMissing && !empty($submittedData)) {
584-
$child->submit($submittedData, $clearMissing);
583+
} elseif (!$isSubmitted && !$clearMissing && array_key_exists($name, $submittedData)) {
584+
$child->submit($submittedData[$name], $clearMissing);
585585
}
586586
}
587587

0 commit comments

Comments
 (0)
0