N°6040 - Booking: Add prerequisites in iTop core - Compilation extensibility - rework of properties

This commit is contained in:
Eric Espie
2023-03-10 11:48:22 +01:00
parent 69beb05a55
commit ae5f4cc30f
4 changed files with 475 additions and 218 deletions

View File

@@ -4894,7 +4894,7 @@ abstract class DBObject implements iDisplay
foreach (MetaModel::ListAttributeDefs($sClass) as $sAttCode => $oAttDef) {
if ($oAttDef instanceof AttributeExternalKey && $oAttDef->IsExternalKey(EXTKEY_ABSOLUTE)) {
$iOption = $oAttDef->GetDeletionOptionForTargetObject();
if ($iOption == DEL_SILENT || $iOption == DEL_AUTO) {
if ($iOption === DEL_SILENT || $iOption === DEL_AUTO) {
// Delete target object
$oTargetObject = MetaModel::GetObject($oAttDef->GetTargetClass(), $this->Get($sAttCode));
$oTargetObject->MakeDeletionPlan($oDeletionPlan, $aVisited, $iOption);