BUGFIX: resolve locale issue when posting blog entry from the front-end

This commit is contained in:
Saophalkun Ponlu 2010-06-16 22:40:02 +00:00
parent ff82305495
commit c925304eca
1 changed files with 5 additions and 0 deletions

View File

@ -273,8 +273,13 @@ class BlogHolder_Controller extends BlogTree_Controller {
}
$form->saveInto($blogentry);
$blogentry->ParentID = $this->ID;
$blogentry->Content = $form->datafieldByName('BlogPost')->dataValue();
if(Object::hasExtension('Translatable')) {
$blogentry->Locale = $this->Locale;
}
$blogentry->Status = "Published";
$blogentry->writeToStage("Stage");