mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX: use localized prefix to compare group codes rather than hard coded english string. MINOR: updated lang file
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@100370 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
bd74d6dd76
commit
bad4352d60
@ -343,7 +343,7 @@ class Group extends DataObject {
|
||||
function onBeforeWrite() {
|
||||
parent::onBeforeWrite();
|
||||
|
||||
if(stripos($this->Code, 'new-') === 0) {
|
||||
if(stripos($this->Code, _t('SecurityAdmin.NEWGROUPPREFIX','new-')) === 0) {
|
||||
$this->setCode($this->Title);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user