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

AjaxValidation: ajax response with validation errors is not processed in 2.0.47 - 2.0.49.1 #20084

Open
umyskov opened this issue Dec 18, 2023 · 4 comments
Labels
status:to be verified Needs to be reproduced and validated. type:bug Bug
Milestone

Comments

@umyskov
Copy link

umyskov commented Dec 18, 2023

What steps will reproduce the problem?

Install Yii 2.0.49.1, make form with ajax validation, fill fields incorrectly, push submit button/

What is the expected result?

After submit, the ajax request is sent then returned with a json response containing validation errors, the form shows validation errors, form not sent and submit button is blocked.

What do you get instead?

After submit, the ajax request is sent then returned with a json response containing validation errors, the errors not displayed and the form is sent anyway.

Additional info

Q A
Yii version 2.0.49.1
PHP version 7.4
Operating system Ubuntu
@samdark samdark added type:bug Bug status:to be verified Needs to be reproduced and validated. labels Dec 20, 2023
@samdark
Copy link
Member

samdark commented Dec 20, 2023

2.0.46 is alright?

@umyskov
Copy link
Author

umyskov commented Dec 21, 2023

yes. 2.0.46 is alright

@samdark samdark added this to the 2.0.50 milestone Dec 21, 2023
@samdark
Copy link
Member

samdark commented Dec 21, 2023

Is it reproduceable with regular form in a basic app template?

@umyskov
Copy link
Author

umyskov commented Dec 25, 2023

I reproduced it on an advanced one, but maybe in this case it doesn't matter where to reproduce it

@yiisoft yiisoft deleted a comment from Webkadabra Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:to be verified Needs to be reproduced and validated. type:bug Bug
Projects
None yet
Development

No branches or pull requests

2 participants