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:
Ingo Schommer 2013-04-29 09:59:35 +02:00
parent 23a7ab8cb4
commit 5e9e8e4e8c

View File

@ -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());