浏览代码

Ignore silently unknown attributes when loading a XML file since we know have variations in the data model of the CMDB...

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2358 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 12 年之前
父节点
当前提交
6ff323c986
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      setup/xmldataloader.class.inc.php

+ 3 - 2
setup/xmldataloader.class.inc.php

@@ -212,8 +212,9 @@ class XMLDataLoader
 				if (!MetaModel::IsValidAttCode($sClass, $sAttCode))
 				{
 					$sMsg = "Unknown attribute code - $sClass/$sAttCode";
-					SetupPage::log_error($sMsg);
-					throw(new Exception($sMsg));
+					continue; // ignore silently...
+					//SetupPage::log_error($sMsg);
+					//throw(new Exception($sMsg));
 				}
 
 				$oAttDef = MetaModel::GetAttributeDef($sClass, $sAttCode);