diff --git a/src/Models/DataObjectTaxonomyTerm.php b/src/Models/DataObjectTaxonomyTerm.php index 8257b23..64a63d1 100644 --- a/src/Models/DataObjectTaxonomyTerm.php +++ b/src/Models/DataObjectTaxonomyTerm.php @@ -42,8 +42,10 @@ public function onBeforeDelete() parent::onBeforeDelete(); if ($this->hasExtension(Versioned::class)) { - if ($this->canUnpublish()) { - $this->doUnpublish(); + if (Versioned::get_stage() === Versioned::DRAFT) { + if ($this->canUnpublish()) { + $this->doUnpublish(); + } } } }