-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
GridView filter for boolean columns or numeric columns with value=0 broke after update to 2.0.46 #19508
Milestone
Comments
alnidok
added a commit
to alnidok/yii2
that referenced
this issue
Aug 20, 2022
This is the related issue with the commit that did it I believe: #19324 This has affected many of my GridViews and there are probably many effects cascading from it. Any view that I leave a boolean filter unselected automatically changes to a false value and ruins subsequent uses of the grid. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
GridView with boolean column and filter row. Filter dropdown for column "approved" has 3 options:
![5ff17638f7](https://user-images.githubusercontent.com/5506837/185745592-a8eeeed9-b361-45b0-992b-e03ce0a38810.png)
empty (prompt), Yes(=1), No(=0)
I expect to see empty value (prompt) after select empty option and applying filter. And it works correct on v2.0.45.
![0067a79267](https://user-images.githubusercontent.com/5506837/185745795-adab682b-7201-4cc7-9696-ff4f285be3b3.png)
But it works incorrect on v2.0.46 - render selected option with value=0 after filter applying.
What steps will reproduce the problem?
Select empty option in filter.
What is the expected result?
What do you get instead?
Additional info
The text was updated successfully, but these errors were encountered: