Fixed Versioned hook regression

Introduced by 5238e9cf48
This commit is contained in:
Ingo Schommer 2013-04-06 12:24:57 +02:00
parent 667711609b
commit e2b42ca4c2

View File

@ -1077,12 +1077,12 @@ class Versioned extends DataExtension {
* @param $version Either the string 'Live' or a version number
*/
public function doRollbackTo($version) {
$this->extend('onBeforeRollback', $version);
$this->owner->extend('onBeforeRollback', $version);
$this->publish($version, "Stage", true);
$this->owner->writeWithoutVersion();
$this->extend('onAfterRollback', $version);
$this->owner->extend('onAfterRollback', $version);
}
/**