mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Change comment / test for clarification
This commit is contained in:
@@ -799,7 +799,8 @@ class iTopDesignFormat
|
||||
$this->MoveNode($oNode, $oSemanticNode, "state_attribute");
|
||||
}
|
||||
|
||||
// New values format contains code
|
||||
// New field format, value contains code
|
||||
// Note: In the XPath there is no filter on the xsi:type as this (XML) attribute is not present on fields overloads. The main drawback is that it will convert any custom AttributeXXX with the same syntax.
|
||||
$oNodeList = $oXPath->query("/itop_design/classes//class/fields/field/values/value");
|
||||
foreach ($oNodeList as $oNode) {
|
||||
$sCode = $oNode->textContent;
|
||||
@@ -888,7 +889,9 @@ class iTopDesignFormat
|
||||
$sPath = "/itop_design//class/properties/fields_semantic";
|
||||
$this->RemoveNodeFromXPath($sPath);
|
||||
|
||||
// New values format
|
||||
// New field format
|
||||
// Note: In the XPath there is no filter on the xsi:type as this (XML) attribute is not present on fields overloads. The main drawback is that it will convert any custom AttributeXXX with the same syntax.
|
||||
// - Values
|
||||
$oNodeList = $oXPath->query("/itop_design/classes//class/fields/field/values/value");
|
||||
foreach ($oNodeList as $oNode) {
|
||||
$oCodeNode = $oXPath->query('code', $oNode)->item(0);
|
||||
@@ -902,7 +905,7 @@ class iTopDesignFormat
|
||||
$oNode->textContent = $sCode;
|
||||
}
|
||||
}
|
||||
|
||||
// - Style
|
||||
$sPath = "/itop_design/classes//class/fields/field/default_style";
|
||||
$this->RemoveNodeFromXPath($sPath);
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
</themes>
|
||||
</branding>
|
||||
<classes>
|
||||
<class id="PhysicalDevice" _delta="must_exist">
|
||||
<class id="ClassWithNewValueInFieldWhichHasNoXsiTypeDueToMustExistFlag" _delta="must_exist">
|
||||
<fields>
|
||||
<field id="status" _delta="must_exist">
|
||||
<values>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
</themes>
|
||||
</branding>
|
||||
<classes>
|
||||
<class id="PhysicalDevice" _delta="must_exist">
|
||||
<class id="ClassWithNewValueInFieldWhichHasNoXsiTypeDueToMustExistFlag" _delta="must_exist">
|
||||
<fields>
|
||||
<field id="status" _delta="must_exist">
|
||||
<values>
|
||||
|
||||
Reference in New Issue
Block a user