mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-06 09:34:13 +01:00
Model factory: handle the flag 'if_exists' when transforming XML from version 1.3 to older versions
SVN:trunk[4076]
This commit is contained in:
@@ -519,6 +519,15 @@ class iTopDesignFormat
|
||||
$this->LogWarning('The attribute '.self::GetItopNodePath($oNode).' is irrelevant and must be removed.');
|
||||
$this->DeleteNode($oNode);
|
||||
}
|
||||
|
||||
// Discard _delta="if_exists"
|
||||
//
|
||||
$oNodeList = $oXPath->query("//*[@_delta='if_exists']");
|
||||
foreach ($oNodeList as $oNode)
|
||||
{
|
||||
$this->LogWarning('The flag _delta="if_exists" on '.self::GetItopNodePath($oNode).' is irrelevant and must be replaced by _delta="must_exist".');
|
||||
$oNode->setAttribute('_delta', 'must_exist');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user