From a4df078f9a190ee85f1354a511788210a0fa1f23 Mon Sep 17 00:00:00 2001 From: Simon Elvery Date: Tue, 13 Nov 2012 16:39:36 +1000 Subject: [PATCH] BUGFIX Ensure members can be created with individual locale setting. --- code/controller/TranslatableCMSMainExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/controller/TranslatableCMSMainExtension.php b/code/controller/TranslatableCMSMainExtension.php index f46974d..643e00f 100644 --- a/code/controller/TranslatableCMSMainExtension.php +++ b/code/controller/TranslatableCMSMainExtension.php @@ -80,8 +80,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)); } }