mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #5808 from flamerohr/patch-1
Remove double checking for Code
This commit is contained in:
commit
b82c37acb3
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user