Closed Geoffry304 closed 5 years ago
Line 1132 $model->data = array_filter($this->gridOptions['filterModel']->attributes);
change to $model->data = array_filter($this->gridOptions['filterModel']->attributes, function($a) {return isset($a);});
@kartik-v is there a reason why you are not updating this?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Prerequisites
master
branch of yii2-dynagrid.Steps to reproduce the issue
Expected behavior and actual behavior
When I follow those steps, I see... an empty array and that the value is not saved for the filter
I was expecting... an array and that the value is saved for the filter example Approved = 0
Environment
Browsers
Operating System
Libraries
Isolating the problem