You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Validation of DynamicModel fails because-of passing value not as an array and as each element of an array.
If change DynamicModel rules definision as fallow:
It works fine for IN condition but not for the simple conditions
I've traced it and found this, where loop over an array goes and validator recives element and not all list as expected..
Additional info
Q
A
Yii version
2.0.14
PHP version
7.0.30
Operating system
MacOS 10.13.6
The text was updated successfully, but these errors were encountered:
What steps will reproduce the problem?
I have configured
IndexAction
in controller like fallowAs you can see, expect to use this attributes like an array of integers
When I use operator
in
in filter param as fallow:Validation of
DynamicModel
fails because-of passing value not as an array and as each element of an array.If change
DynamicModel
rules definision as fallow:It works fine for
IN
condition but not for the simple conditionsI've traced it and found this, where loop over an array goes and validator recives element and not all list as expected..
Additional info
The text was updated successfully, but these errors were encountered: