-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove isSubmitted call #5970
Remove isSubmitted call #5970
Conversation
Streamline with http://symfony.com/doc/current/book/forms.html#handling-form-submissions There is no need for `isSubmitted` as this is done inside `isValid`
But this is intended, because is considered a best practice. http://symfony.com/doc/current/best_practices/forms.html
|
Okay ... but then this should be changed in the referenced documentation http://symfony.com/doc/current/book/forms.html#handling-form-submissions, shouldn't it? |
Yes, you're right. If you can do it would be great! |
Done within #5972 I'll close this pull request. |
To follow best practice swap order of calls.
Following #5972 I've swapped the order of call. |
👍 |
Great, thanks Daniel! |
This PR was submitted for the 3.0 branch but it was merged into the 2.3 branch instead (closes #5970). Discussion ---------- Remove isSubmitted call Streamline with http://symfony.com/doc/current/book/forms.html#handling-form-submissions There is no need for `isSubmitted` as this is done inside `isValid` Commits ------- cebd5fd Remove isSubmitted call
Streamline with http://symfony.com/doc/current/book/forms.html#handling-form-submissions
There is no need for
isSubmitted
as this is done insideisValid