From 6d5f83ad59fd76dc9009be1010ab4bea2f8bc9b5 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Mon, 9 Aug 2010 04:48:57 +0000 Subject: [PATCH] BUGFIX Group::getCMSFields() should use Tab instances with a fixed name instead of translated one, leaving the translation for the tab title instead git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@109083 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- security/Group.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/security/Group.php b/security/Group.php index 48d596b34..7697ee2d5 100644 --- a/security/Group.php +++ b/security/Group.php @@ -56,7 +56,7 @@ class Group extends DataObject { public function getCMSFields() { $fields = new FieldSet( new TabSet("Root", - new Tab(_t('SecurityAdmin.MEMBERS', 'Members'), + new Tab('Members', _t('SecurityAdmin.MEMBERS', 'Members'), new TextField("Title", $this->fieldLabel('Title')), $memberList = new MemberTableField( $this, @@ -67,7 +67,7 @@ class Group extends DataObject { ) ), - $permissionsTab = new Tab(_t('SecurityAdmin.PERMISSIONS', 'Permissions'), + $permissionsTab = new Tab('Permissions', _t('SecurityAdmin.PERMISSIONS', 'Permissions'), new PermissionCheckboxSetField( 'Permissions', false, @@ -77,7 +77,7 @@ class Group extends DataObject { ) ), - new Tab(_t('Security.IPADDRESSES', 'IP Addresses'), + new Tab('IPAddresses', _t('Security.IPADDRESSES', 'IP Addresses'), new LiteralField("", _t('SecurityAdmin.IPADDRESSESHELP',"

You can restrict this group to a particular IP address range (one range per line).
Ranges can be in any of the following forms:
203.96.152.12