Closed Lachee closed 4 years ago
I still have this issue with version dev-master 9f8773367d
This issue is critical in my application for effective filtering of user roles. Please advise.
This seems to have been fixed. Unclear what the cause was still.
Prerequisites
master
branch of yii2-grid.Steps to reproduce the issue
Creating a multiple tag filter causes the page to throw a array to string conversion exception when any tag is selected. The input normally renders fine, but when trying to filter it throws.
Create a GridView with a filter. Make the filter for an attribute a
FILTER_SELECT2
and set it up to use multiple tags, like so:For the filter, mark it as an array of strings
[['roles'], 'each', 'rule' => ['string' ] ],
Now select a tag in the filter
Expected behavior and actual behavior
When I follow those steps, I see...
I was expecting... The tag to be selected in the filter of the grid and a array of strings given to the filter model.
Environment
Browsers
its a backend issue
Operating System
Libraries
Isolating the problem