ImageAttribute: only in XML version 1.3

SVN:trunk[4131]
This commit is contained in:
Romain Quetiez
2016-05-24 19:55:08 +00:00
parent 1a5637352b
commit 4187b074a9
2 changed files with 10 additions and 1 deletions

View File

@@ -520,6 +520,15 @@ class iTopDesignFormat
$this->DeleteNode($oNode);
}
// Remove Image attributes
//
$oNodeList = $oXPath->query("/itop_design/classes//class/fields/field[@xsi:type='AttributeImage']");
foreach ($oNodeList as $oNode)
{
$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']");