Skip to content

[Form] Ajax success method is never call #16157

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

Merged
merged 1 commit into from
Nov 26, 2021

Conversation

Yoann-TYT
Copy link
Contributor

The method renderForm generate a 422 Unprocessable Entity if the form is invalid. So we can’t pass in the success method. I suggest to replace it with the complete method.

… is invalid. So we can’t pass in the success method. I suggest to replace it with the complete method.
@carsonbot carsonbot changed the title Ajax success method is never call [Form] Ajax success method is never call Nov 26, 2021
@javiereguiluz javiereguiluz added this to the 5.3 milestone Nov 26, 2021
@javiereguiluz
Copy link
Member

Nice improvement! Thanks Yoann.

@javiereguiluz javiereguiluz merged commit 69d4ef5 into symfony:5.3 Nov 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants