N°8131 - Issue on DBlinkchange event when object is delete

This commit is contained in:
Eric Espie
2025-01-24 11:59:51 +01:00
parent a7bc4bd411
commit 858b12abaa

View File

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