mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
ENHANCEMENT Use less expensive i18n defaults in Member::populateDefaults()
Fixes #7381
This commit is contained in:
parent
91943c03e5
commit
f4b1417612
@ -260,7 +260,7 @@ class Member extends DataObject
|
||||
public function populateDefaults()
|
||||
{
|
||||
parent::populateDefaults();
|
||||
$this->Locale = i18n::get_closest_translation(i18n::get_locale());
|
||||
$this->Locale = i18n::get_locale();
|
||||
}
|
||||
|
||||
public function requireDefaultRecords()
|
||||
|
Loading…
Reference in New Issue
Block a user