Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR Fixed tab naming in Group->getCMSFields() (from r101718)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112026 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
commit b88f462664a8b6f57eb57ccc0f2e0c8f0d5fce62 1 parent 1bbec96
@sminnee sminnee authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  security/Group.php
View
3  security/Group.php
@@ -114,7 +114,8 @@ public function getCMSFields() {
// Only show the "Roles" tab if permissions are granted to edit them,
// and at least one role exists
if(Permission::check('APPLY_ROLES') && DataObject::get('PermissionRole')) {
- $fields->addFieldToTab('Root.' . _t('SecurityAdmin.ROLES', 'Roles'),
+ $fields->findOrMakeTab('Root.Roles', _t('SecurityAdmin.ROLES', 'Roles'));
+ $fields->addFieldToTab('Root.Roles',
new LiteralField(
"",
"<p>" .
Please sign in to comment.
Something went wrong with that request. Please try again.