From 20103def45804467b6fb4dfa17dce7cac100ce25 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Thu, 25 Oct 2012 13:24:22 +0000 Subject: [PATCH] Ignore silently unknown attributes when loading a XML file since we know have variations in the data model of the CMDB... SVN:trunk[2358] --- setup/xmldataloader.class.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup/xmldataloader.class.inc.php b/setup/xmldataloader.class.inc.php index fd5c2524c..b446c7903 100644 --- a/setup/xmldataloader.class.inc.php +++ b/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);