diff --git a/setup/modelfactory.class.inc.php b/setup/modelfactory.class.inc.php index fcc52b65b..e2c1c76d0 100644 --- a/setup/modelfactory.class.inc.php +++ b/setup/modelfactory.class.inc.php @@ -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); } }