mirror of
https://github.com/silverstripe/silverstripe-translatable
synced 2024-10-22 11:05:59 +02:00
Merge pull request #70 from lrc/create-member-bugfix
BUGFIX Ensure members can be created with individual locale setting.
This commit is contained in:
commit
6413eca05d
@ -81,8 +81,8 @@ class TranslatableCMSMainExtension extends Extension {
|
||||
}
|
||||
|
||||
function updateEditForm(&$form) {
|
||||
$siteConfig = SiteConfig::current_site_config();
|
||||
if($form->getName() == 'RootForm' && Object::has_extension('SiteConfig',"Translatable")) {
|
||||
$siteConfig = SiteConfig::current_site_config();
|
||||
$form->Fields()->push(new HiddenField('Locale','', $siteConfig->Locale));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user