mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
MINOR: merge r106597 from branch 0.4
This commit is contained in:
parent
a71f4e6908
commit
fe2e699730
@ -273,9 +273,14 @@ 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");
|
||||
$blogentry->publish("Stage", "Live");
|
||||
|
Loading…
Reference in New Issue
Block a user