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