mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-19 16:48:42 +02:00
N°7080 - EVENT_DB_LINKS_CHANGED not fired when deleting a user
Fix regressions caused by deletion plan reorder
This commit is contained in:
@@ -6101,7 +6101,10 @@ JS
|
||||
MetaModel::StartReentranceProtection($oObject);
|
||||
$oObject->FireEvent(EVENT_DB_LINKS_CHANGED);
|
||||
MetaModel::StopReentranceProtection($oObject);
|
||||
if (count($oObject->ListChanges()) !== 0) {
|
||||
|
||||
// Use IsNew() === true when object is deleted
|
||||
// new objects are already saved at this point (so IsNeww() will return false in this case)
|
||||
if (!$oObject->IsNew() && count($oObject->ListChanges()) !== 0) {
|
||||
$oObject->DBUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user