Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…451993 (fixes #7107)
  • Loading branch information...
commit f021b9eec1fc1364f8029dd5b899883a91d29da3 1 parent a18b9bd
@chillu chillu authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  code/model/SiteTree.php
View
2  code/model/SiteTree.php
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.