Permalink
Browse files

BUGFIX Writing version in SiteTree->doRestoreToStage, regression from 9…

…451993 (fixes #7107)
  • Loading branch information...
1 parent a18b9bd commit f021b9eec1fc1364f8029dd5b899883a91d29da3 @chillu chillu committed Apr 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 code/model/SiteTree.php
View
@@ -2230,7 +2230,7 @@ function doRestoreToStage() {
$oldStage = Versioned::current_stage();
Versioned::reading_stage('Stage');
$this->forceChange();
- $this->writeWithoutVersion();
+ $this->write();
$result = DataObject::get_by_id($this->class, $this->ID);

0 comments on commit f021b9e

Please sign in to comment.