BUGFIX: Call onBeforeUnpublish/onAfterUnpublish events in doDeleteFromLive, because they amount to the same thing. (from r90001) (from r96732)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102354 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-04-12 01:57:56 +00:00
parent 6b85948404
commit 219c57b7bd

View File

@ -1975,10 +1975,14 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
}
function doDeleteFromLive() {
$this->extend('onBeforeUnpublish');
$origStage = Versioned::current_stage();
Versioned::reading_stage('Live');
$this->delete();
Versioned::reading_stage($origStage);
Versioned::reading_stage($origStage);
$this->extend('onAfterUnpublish');
}
/**