-
Notifications
You must be signed in to change notification settings - Fork 99
Open
Description
There is no search filter in the Groups tab in SecurityAdmin despite having the GridFieldFilterHeader in the groups GridFieldConfig.
What's more, if you customise the summary_fields or searchable_fields for Group via an Extension, the SecurityAdmin doesn't respect it.
This seems to be caused by the below lines which override the display fields for GridFieldDataColumns.
silverstripe-admin/code/SecurityAdmin.php
Lines 143 to 145 in 7f7fc72
| $columns->setDisplayFields(array( | |
| 'Breadcrumbs' => Group::singleton()->fieldLabel('Title') | |
| )); |
Commenting out those lines provides the search filter and allows customised
summary_fields or searchable_fields to be reflected correctly.
It also points out a deeper issue - the GridFieldFilterHeader should probably not be affected by GridFieldDataColumns if searchable_fields has been provided.