mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Update Group.php
use of convert::raw2xml, rename $grp to $group
This commit is contained in:
parent
4f8240bd48
commit
40e5c4ec59
@ -106,6 +106,8 @@ class Group extends DataObject
|
|||||||
return $doSet;
|
return $doSet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private function getGroups
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Caution: Only call on instances, not through a singleton.
|
* Caution: Only call on instances, not through a singleton.
|
||||||
* The "root group" fields will be created through {@link SecurityAdmin->EditForm()}.
|
* The "root group" fields will be created through {@link SecurityAdmin->EditForm()}.
|
||||||
@ -116,9 +118,9 @@ class Group extends DataObject
|
|||||||
public function getCMSFields()
|
public function getCMSFields()
|
||||||
{
|
{
|
||||||
$list = Group::get()->exclude('ID', $this->ID);
|
$list = Group::get()->exclude('ID', $this->ID);
|
||||||
$groups = new ArrayList();
|
$groups = ArrayList::create();
|
||||||
foreach ($list as $grp) {
|
foreach ($list as $group) {
|
||||||
$groups->push(['ID' => $grp->ID, 'Title' => html_entity_decode($grp->Breadcrumbs)]);
|
$groups->push(['ID' => $group->ID, 'Title' => Convert::xml2raw($group->Breadcrumbs)]);
|
||||||
}
|
}
|
||||||
$fields = new FieldList(
|
$fields = new FieldList(
|
||||||
new TabSet(
|
new TabSet(
|
||||||
|
Loading…
Reference in New Issue
Block a user