kartik-v / yii2-grid

Enhanced GridView with various utilities for Yii Framework 2.0
http://demos.krajee.com/grid
Other
557 stars 302 forks source link

Select 2 Filter with multiple option showing error: Array to string conversion #974

Closed sangroya closed 3 years ago

sangroya commented 3 years ago

Scope

This pull request includes a

Below error is coming when we using the Filter as select2 in grid with multiple option true. PHP Notice – yii\base\ErrorException Array to string conversion

Screenshot 2021-01-11 at 2 43 49 PM

Changes

The following changes were made (this change is also documented in the change log):

We added a if condition in DataColumn.php at line number 253, to check if filterType is coming as blank only then we need to call the parent function : parent::renderFilterCellContent(); As in case of select2 it's trying to render Html::activeTextInput due that error is coming

-

Related Issues

If this is related to an existing ticket, include a link to it as well.

stale[bot] commented 3 years ago

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.