From cb61d855725e5d592f0d6ebe3e01b10d25fa6242 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Tue, 11 May 2021 09:28:04 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B03990=20-=20Forgot=20to=20update=20descen?= =?UTF-8?q?ding=20migration=20method=20so=20it=20applies=20=5Fdelta=20flag?= =?UTF-8?q?=20where=20its=20needed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup/itopdesignformat.class.inc.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/setup/itopdesignformat.class.inc.php b/setup/itopdesignformat.class.inc.php index b868e9951..73950a3b5 100644 --- a/setup/itopdesignformat.class.inc.php +++ b/setup/itopdesignformat.class.inc.php @@ -883,13 +883,9 @@ class iTopDesignFormat // Move node under lifecycle only if there is such a node $oLifecycleNode = $oXPath->query("../../../lifecycle", $oNode)->item(0); if ($oLifecycleNode !== null) { - // Create attribute node - $oAttributeNode = $oLifecycleNode->ownerDocument->createElement("attribute", $oNode->nodeValue); - $oLifecycleNode->appendChild($oAttributeNode); + // Move to attribute node + $this->MoveNode($oNode, $oLifecycleNode, "attribute"); } - - // Remove current node from semantic in all cases - $this->DeleteNode($oNode); } // - Remove semantic node $sPath = "/itop_design//class/properties/fields_semantic";