Skip to content

Commit

Permalink
Merge pull request #342 from Zack-Ben/fix/is-submitted
Browse files Browse the repository at this point in the history
Fixes symfony form deprecation
  • Loading branch information
craue committed Oct 7, 2019
2 parents fa6d812 + 8bb4cd5 commit 8857a89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Form/FormFlow.php
Expand Up @@ -942,7 +942,7 @@ public function redirectAfterSubmit(FormInterface $submittedForm) {
return true;
default:
// redirect after submit only if there are no errors for the submitted form
return $submittedForm->isValid();
return $submittedForm->isSubmitted() && $submittedForm->isValid();
}
}

Expand Down

0 comments on commit 8857a89

Please sign in to comment.