diff --git a/core/dbobject.class.php b/core/dbobject.class.php index 1963ac5bd..5a953ca02 100644 --- a/core/dbobject.class.php +++ b/core/dbobject.class.php @@ -2398,10 +2398,6 @@ abstract class DBObject implements iDisplay */ protected function DoCheckToDelete(&$oDeletionPlan) { - $this->m_aDeleteIssues = array(); // Ok - - $this->EventCheckToDelete(); - if ($this->InSyncScope()) { @@ -4864,6 +4860,8 @@ abstract class DBObject implements iDisplay return; } // Check the node itself + $this->m_aDeleteIssues = array(); // Ok + $this->EventCheckToDelete(); $this->DoCheckToDelete($oDeletionPlan); $oDeletionPlan->SetDeletionIssues($this, $this->m_aDeleteIssues, $this->m_bSecurityIssue);