mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #630 from silverstripe-rebelalliance/open/6875
BUG: open/6875 removing DataGrid filter fields from track changes
This commit is contained in:
commit
0ae20a13f8
@ -120,6 +120,7 @@ class GridFieldFilterHeader implements GridField_HTMLProvider, GridField_DataMan
|
|||||||
}
|
}
|
||||||
$field = new TextField('filter['.$columnField.']', '', $value);
|
$field = new TextField('filter['.$columnField.']', '', $value);
|
||||||
$field->addExtraClass('ss-gridfield-sort');
|
$field->addExtraClass('ss-gridfield-sort');
|
||||||
|
$field->addExtraClass('no-change-track');
|
||||||
|
|
||||||
$field->setAttribute('placeholder', _t('GridField.FilterBy', "Filter by ") . _t('GridField.'.$metadata['title'], $metadata['title']));
|
$field->setAttribute('placeholder', _t('GridField.FilterBy', "Filter by ") . _t('GridField.'.$metadata['title'], $metadata['title']));
|
||||||
|
|
||||||
@ -144,6 +145,7 @@ class GridFieldFilterHeader implements GridField_HTMLProvider, GridField_DataMan
|
|||||||
->setAttribute('id', 'action_reset_' . $gridField->getModelClass() . '_' . $columnField)
|
->setAttribute('id', 'action_reset_' . $gridField->getModelClass() . '_' . $columnField)
|
||||||
);
|
);
|
||||||
$field->addExtraClass('filter-buttons');
|
$field->addExtraClass('filter-buttons');
|
||||||
|
$field->addExtraClass('no-change-track');
|
||||||
}else{
|
}else{
|
||||||
$field = new LiteralField('', '');
|
$field = new LiteralField('', '');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user