We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02992aa commit adb5655Copy full SHA for adb5655
src/Symfony/Component/Form/Form.php
@@ -508,14 +508,14 @@ public function handleRequest($request = null)
508
*/
509
public function submit($submittedData, $clearMissing = true)
510
{
511
- if ($submittedData instanceof Request) {
512
- return $this->handleRequest($submittedData);
513
- }
514
-
515
if ($this->submitted) {
516
throw new AlreadySubmittedException('A form can only be submitted once');
517
}
518
+ if ($submittedData instanceof Request) {
+ return $this->handleRequest($submittedData);
+ }
+
519
// Initialize errors in the very beginning so that we don't lose any
520
// errors added during listeners
521
$this->errors = array();
0 commit comments