mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-01 14:38:47 +02:00
N°6040 - Booking: Add prerequisites in iTop core - Compilation extensibility - rework of properties
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user