Merge pull request #630 from silverstripe-rebelalliance/open/6875

BUG: open/6875 removing DataGrid filter fields from track changes
This commit is contained in:
Ingo Schommer 2012-07-10 02:50:00 -07:00
commit 0ae20a13f8

View File

@ -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('', '');
} }