mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
6b85948404
commit
219c57b7bd
@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user