mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-02 14:18:46 +02:00
parent
667711609b
commit
e2b42ca4c2
@ -1077,12 +1077,12 @@ class Versioned extends DataExtension {
|
|||||||
* @param $version Either the string 'Live' or a version number
|
* @param $version Either the string 'Live' or a version number
|
||||||
*/
|
*/
|
||||||
public function doRollbackTo($version) {
|
public function doRollbackTo($version) {
|
||||||
$this->extend('onBeforeRollback', $version);
|
$this->owner->extend('onBeforeRollback', $version);
|
||||||
$this->publish($version, "Stage", true);
|
$this->publish($version, "Stage", true);
|
||||||
|
|
||||||
$this->owner->writeWithoutVersion();
|
$this->owner->writeWithoutVersion();
|
||||||
|
|
||||||
$this->extend('onAfterRollback', $version);
|
$this->owner->extend('onAfterRollback', $version);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user