From 291c527174e62cbe19a427a0e4f59e7677bc8c09 Mon Sep 17 00:00:00 2001 From: Chris Joe Date: Thu, 14 Jul 2016 16:47:48 +1200 Subject: [PATCH] Remove double checking for Code --- Security/Group.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Security/Group.php b/Security/Group.php index a0a671a4e..1e2125f0f 100755 --- a/Security/Group.php +++ b/Security/Group.php @@ -406,7 +406,7 @@ class Group extends DataObject { // The "Code" attribute is usually treated as a more permanent identifier than database IDs // in custom application logic, so can't be changed after its first set. if(!$this->Code && $this->Title != _t('SecurityAdmin.NEWGROUP',"New Group")) { - if(!$this->Code) $this->setCode($this->Title); + $this->setCode($this->Title); } }