diff --git a/code/CMSMain.php b/code/CMSMain.php index 4235f939..9a7ac011 100755 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -333,7 +333,11 @@ JS; } } elseif ($id == 0) { $siteConfig = SiteConfig::current_site_config(); - $form = new Form($this, "EditForm", $siteConfig->getFormFields(), $siteConfig->getFormActions()); + $fields = $siteConfig->getFormFields(); + if(Object::has_extension('SiteConfig',"Translatable")){ + $fields->push(new HiddenField('Locale','', $siteConfig->Locale )); + } + $form = new Form($this, "EditForm", $fields, $siteConfig->getFormActions()); $form->loadDataFrom($siteConfig); return $form; } else {