N°4756 - Ease extensibility for CRUD operations : Events not sent in overridable methods

This commit is contained in:
Eric Espie
2023-01-02 14:06:02 +01:00
parent 626ba7ee66
commit 98ec568788

View File

@@ -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);