BUGFIX Ensure members can be created with individual locale setting.

This commit is contained in:
Simon Elvery 2012-11-13 16:39:36 +10:00
parent 1bb392c8dc
commit a4df078f9a

View File

@ -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));
} }
} }