Skip to content

Commit

Permalink
Merge pull request #70 from lrc/create-member-bugfix
Browse files Browse the repository at this point in the history
BUGFIX Ensure members can be created with individual locale setting.
  • Loading branch information
chillu committed Nov 15, 2012
2 parents 9032711 + a4df078 commit 6413eca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/controller/TranslatableCMSMainExtension.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ function init() {
} }


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));
} }
} }
Expand Down

0 comments on commit 6413eca

Please sign in to comment.