Merge pull request #6797 from halkyon/broken-group-search

Fixing broken search in SecurityAdmin Groups field
This commit is contained in:
Damian Mooyman 2017-05-18 14:28:53 +12:00 committed by GitHub
commit 3883878c13

View File

@ -94,10 +94,10 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
);
$columns = $groupList->getConfig()->getComponentByType('GridFieldDataColumns');
$columns->setDisplayFields(array(
'Breadcrumbs' => singleton('Group')->fieldLabel('Title')
'Title' => singleton('Group')->fieldLabel('Title')
));
$columns->setFieldFormatting(array(
'Breadcrumbs' => function($val, $item) {
'Title' => function($val, $item) {
return Convert::raw2xml($item->getBreadcrumbs(' > '));
}
));