This means that to ignore a filter, both value and key must match to be ignored. As filters are passed by GET params, they can be in a different order or have a non predictable index.
To ignore a value we need to match only the value without cheking the index, so php array_diff function is the right choice here.
I have modified an existing test to ignore the second option instead the first one to raise the error, and I have added one more test before commiting the bugfix.
Currently ignored filters values option is working wrong because the function
resolveValueForFiltering
is usingarray_diff_assoc
that computes the difference of arrays with additional index check (see PHP docs).This means that to ignore a filter, both value and key must match to be ignored. As filters are passed by GET params, they can be in a different order or have a non predictable index.
To ignore a value we need to match only the value without cheking the index, so php
array_diff
function is the right choice here.I have modified an existing test to ignore the second option instead the first one to raise the error, and I have added one more test before commiting the bugfix.