diff --git a/security/Group.php b/security/Group.php index 53f363c3d..38fafb4c7 100755 --- a/security/Group.php +++ b/security/Group.php @@ -66,15 +66,11 @@ class Group extends DataObject { new TabSet("Root", new Tab('Members', _t('SecurityAdmin.MEMBERS', 'Members'), new TextField("Title", $this->fieldLabel('Title')), - Object::create('DropdownField', + $parentidfield = Object::create('DropdownField', 'ParentID', $this->fieldLabel('Parent'), DataList::create('Group')->exclude('ID', $this->ID)->map('ID', 'Breadcrumbs') - )->setEmptyString(' '), - new LiteralField( - 'ParentIDDescription', - '

' . _t('Group.GroupReminder', 'If you choose a parent group, this group will take all it\'s roles') . '

' - ) + )->setEmptyString(' ') ), $permissionsTab = new Tab('Permissions', _t('SecurityAdmin.PERMISSIONS', 'Permissions'), @@ -88,6 +84,8 @@ class Group extends DataObject { ) ) ); + + $parentidfield->setRightTitle('' . _t('Group.GroupReminder', 'If you choose a parent group, this group will take all it\'s roles') . ''); // Filter permissions // TODO SecurityAdmin coupling, not easy to get to the form fields through GridFieldPopupForms