Skip to content

SecurityAdmin ignores summary_fields and searchable_fields on Group #1302

@GuySartorelli

Description

@GuySartorelli

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.

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions