mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 02:28:44 +02:00
N°4756 - Ease extensibility for CRUD operations : Events not sent in overridable methods
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user