CustomFields: Attributes of type CustomFields must be removed when converting from 1.3 to 1.2

SVN:trunk[3975]
This commit is contained in:
Romain Quetiez
2016-03-31 15:00:02 +00:00
parent f3cc54fe8d
commit a5d3208599

View File

@@ -510,6 +510,15 @@ class iTopDesignFormat
$this->LogWarning('The attribute '.self::GetItopNodePath($oNode).' is irrelevant and must be removed.');
$this->DeleteNode($oNode);
}
// Remove CustomFields attributes
//
$oNodeList = $oXPath->query("/itop_design/classes//class/fields/field[@xsi:type='AttributeCustomFields']");
foreach ($oNodeList as $oNode)
{
$this->LogWarning('The attribute '.self::GetItopNodePath($oNode).' is irrelevant and must be removed.');
$this->DeleteNode($oNode);
}
}
/**