Update src/Security/Group.php

Co-Authored-By: Andre Kiste <bergice@users.noreply.github.com>
This commit is contained in:
Dileep Ratnayake 2019-08-27 12:19:03 +12:00 committed by GitHub
parent f7a602137a
commit 4f8240bd48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,7 +117,7 @@ class Group extends DataObject
{ {
$list = Group::get()->exclude('ID', $this->ID); $list = Group::get()->exclude('ID', $this->ID);
$groups = new ArrayList(); $groups = new ArrayList();
foreach($list as $grp){ foreach ($list as $grp) {
$groups->push(['ID' => $grp->ID, 'Title' => html_entity_decode($grp->Breadcrumbs)]); $groups->push(['ID' => $grp->ID, 'Title' => html_entity_decode($grp->Breadcrumbs)]);
} }
$fields = new FieldList( $fields = new FieldList(