mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
N°7799 - ✨ Allow AttributeSet in XML sample file (#654)
* ✨ Allow AttributeSet in XML sample file
In XML Data Loader, manage AttributeSet class and its children to be imported , in sample XML files.
This commit is contained in:
@@ -278,10 +278,6 @@ class XMLDataLoader
|
||||
$oDoc = new ormDocument($data, $sMimeType, $sFileName);
|
||||
$oTargetObj->Set($sAttCode, $oDoc);
|
||||
}
|
||||
elseif ($oAttDef instanceof AttributeTagSet)
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
else
|
||||
{
|
||||
$value = (string)$oSubNode;
|
||||
@@ -289,8 +285,9 @@ class XMLDataLoader
|
||||
if ($value == '')
|
||||
{
|
||||
$value = $oAttDef->GetNullValue();
|
||||
} else {
|
||||
$value = $oAttDef->MakeRealValue($value, $oTargetObj);
|
||||
}
|
||||
|
||||
$res = $oTargetObj->CheckValue($sAttCode, $value);
|
||||
if ($res !== true)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user