Skip to content
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

Is form submitted #347

Open
victor-paumier opened this issue Oct 1, 2019 · 1 comment
Open

Is form submitted #347

victor-paumier opened this issue Oct 1, 2019 · 1 comment

Comments

@victor-paumier
Copy link

Hi,
sometimes I got an error saying:

Cannot check if an unsubmitted form is valid. Call Form::isSubmitted() before Form::isValid(). (from here)

Then, I checked the handler and indeed, $form->isSubmitted() is never called before $form->isValid().
So, is there is a really reason not to call isSubmitted or is this just an oversight?

Thank you!

@hex333ham
Copy link
Collaborator

@victor-paumier I'd guess this is an oversight, currently getting back into things so I'll put this on my list proper for next week

szabogyula added a commit to szabogyula/FOSMessageBundle that referenced this issue Feb 18, 2020
to avoid `Cannot check if an unsubmitted form is valid.` exception issue FriendsOfSymfony#347
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants