N°7080 - EVENT_DB_LINKS_CHANGED not fired when deleting a user

Fix regressions caused by deletion plan reorder
This commit is contained in:
Pierre Goiffon
2024-01-04 17:57:22 +01:00
parent 1de390a24d
commit abb3ea3272
3 changed files with 78 additions and 48 deletions

View File

@@ -134,6 +134,11 @@ class _Ticket extends cmdbAbstractObject
public function UpdateImpactedItems()
{
if ($this->IsNew() && ($this->GetKey() > 0)) {
// deleted ticket
return;
}
require_once(APPROOT.'core/displayablegraph.class.inc.php');
/** @var ormLinkSet $oContactsSet */
$oContactsSet = $this->Get('contacts_list');