Bläddra i källkod

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 år sedan
förälder
incheckning
9ea355a840
1 ändrade filer med 9 tillägg och 0 borttagningar
  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);
+		}
 	}
 
 	/**