mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 02:28:44 +02:00
N°2275 - Fix XML delta computation putting flags on wrong XML levels
This commit is contained in:
@@ -2361,7 +2361,7 @@ class MFElement extends Combodo\iTop\DesignElement
|
||||
// Beware: ImportNode(xxx, false) DOES NOT copy the node's attribute on *some* PHP versions (<5.2.17)
|
||||
// So use this workaround to import a node and its attributes on *any* PHP version
|
||||
$oTargetNode = $oContainer->ownerDocument->ImportNode($this->cloneNode(false), true);
|
||||
$oContainer->AddChildNode($oTargetNode);
|
||||
$oContainer->appendChild($oTargetNode);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -2377,7 +2377,7 @@ class MFElement extends Combodo\iTop\DesignElement
|
||||
// Beware: ImportNode(xxx, false) DOES NOT copy the node's attribute on *some* PHP versions (<5.2.17)
|
||||
// So use this workaround to import a node and its attributes on *any* PHP version
|
||||
$oTargetNode = $oContainer->ownerDocument->ImportNode($this->cloneNode(false), true);
|
||||
$oContainer->AddChildNode($oTargetNode);
|
||||
$oContainer->appendChild($oTargetNode);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user