BUGFIX Writing version in SiteTree->doRestoreToStage, regression from 9451993d (fixes #7107)

This commit is contained in:
Ingo Schommer 2012-04-10 12:27:08 +02:00
parent a18b9bd85e
commit f021b9eec1

View File

@ -2230,7 +2230,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
$oldStage = Versioned::current_stage();
Versioned::reading_stage('Stage');
$this->forceChange();
$this->writeWithoutVersion();
$this->write();
$result = DataObject::get_by_id($this->class, $this->ID);