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

SVN:trunk[2358]
This commit is contained in:
Denis Flaven
2012-10-25 13:24:22 +00:00
parent 664adcb990
commit 20103def45

View File

@@ -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);