mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Fixed BlogEntryForm saving regression from df544e01f
Was saving to live before overwriting with draft again. Since no write to draft ocurred before, this broke the publish() call - e.g. visible by the test breakage in BlogHolderFunctionalTest.
This commit is contained in:
parent
23a7ab8cb4
commit
5e9e8e4e8c
@ -310,8 +310,7 @@ class BlogHolder_Controller extends BlogTree_Controller {
|
||||
$blogentry->Locale = $this->Locale;
|
||||
}
|
||||
|
||||
$blogentry->Status = "Published";
|
||||
$blogentry->writeToStage("Live");
|
||||
$blogentry->writeToStage("Stage");
|
||||
$blogentry->publish("Stage", "Live");
|
||||
|
||||
$this->redirect($this->Link());
|
||||
|
Loading…
Reference in New Issue
Block a user