mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user