Browse Source

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

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3975 a333f486-631f-4898-b8df-5754b55c2be0
romainq 9 years ago
parent
commit
9ea355a840
1 changed files with 9 additions and 0 deletions
  1. 9 0
      setup/itopdesignformat.class.inc.php

+ 9 - 0
setup/itopdesignformat.class.inc.php

@@ -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);
+		}
 	}
 
 	/**