mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
BUGFIX Writing version in SiteTree->doRestoreToStage, regression from 9451993d (fixes #7107)
This commit is contained in:
parent
a18b9bd85e
commit
f021b9eec1
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user