filterAttribute
ignored in DataColumn
when creating non-standard filters
#1064
Closed
12 of 16 tasks
Labels
Prerequisites
master
branch of yii2-grid.Steps to reproduce the issue
GridView
filterType
eg.GridView::FILTER_SELECT_2
andfilterAttribute
different than this column'sattribute
Expected behavior and actual behavior
When I follow those steps, I see that filter input created (eg. input's
name
) is forattribute
valueI was expecting filter input to have
filterAttribute
used for filter creation (eg. for input'sname
). That's whatfilterAttribute
is for and it works for "standard" filter types (eg. regular dropdown).Problem's most likely that
attribute
is passed instead offilterAttribute
inDataColumn::renderFilterCellContent()
:https://github.com/kartik-v/yii2-grid/blob/master/src/DataColumn.php#L266
Environment
Browsers
Operating System
Libraries
Isolating the problem
The text was updated successfully, but these errors were encountered: