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
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.
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.
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
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.