Merge pull request #70 from lrc/create-member-bugfix

BUGFIX Ensure members can be created with individual locale setting.
This commit is contained in:
Ingo Schommer 2012-11-15 03:38:31 -08:00
commit 6413eca05d

View File

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