Update Group.php

This commit is contained in:
Dileep Ratnayake 2019-08-27 16:22:00 +12:00 committed by GitHub
parent a976a1688b
commit 9b7075ed5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,7 +125,6 @@ class Group extends DataObject
*/
public function getCMSFields()
{
$groups = $this->getDecodedBreadcrumbs();
$fields = new FieldList(
new TabSet(
"Root",
@ -136,7 +135,7 @@ class Group extends DataObject
$parentidfield = DropdownField::create(
'ParentID',
$this->fieldLabel('Parent'),
$groups
$this->getDecodedBreadcrumbs()
)->setEmptyString(' '),
new TextareaField('Description', $this->fieldLabel('Description'))
),