From 858b12abaa1118673fdb18512412e7af57145c0c Mon Sep 17 00:00:00 2001 From: Eric Espie Date: Fri, 24 Jan 2025 11:59:51 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B08131=20-=20Issue=20on=20DBlinkchange=20e?= =?UTF-8?q?vent=20when=20object=20is=20delete?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/cmdbabstract.class.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/cmdbabstract.class.inc.php b/application/cmdbabstract.class.inc.php index 947185a49..cfc513bbe 100644 --- a/application/cmdbabstract.class.inc.php +++ b/application/cmdbabstract.class.inc.php @@ -6106,7 +6106,9 @@ JS // We want to avoid launching the listener twice, first here, and secondly after saving the Ticket in the listener // By disabling the event to be fired, we can remove the current object from the attribute ! $oObject = MetaModel::GetObject($sClass, $sId, false); - self::FireEventDbLinksChangedForObject($oObject); + if (!is_null($oObject)) { + self::FireEventDbLinksChangedForObject($oObject); + } self::RemoveObjectAwaitingEventDbLinksChanged($sClass, $sId); }