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