mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
XML customizations: fixed regression introduced in [r4075] (2.3.0-beta), could not change the parent of a class (which should move the class into the internal hierarchy)
+ fixed two error messages SVN:trunk[4194]
This commit is contained in:
@@ -423,7 +423,7 @@ class ModelFactory
|
||||
{
|
||||
echo "Dumping target doc - looking for '".$oSourceNode->getAttribute('id')."'<br/>\n";
|
||||
$this->oDOMDocument->firstChild->Dump();
|
||||
throw new Exception(MFDocument::GetItopNodePath($oSourceNode).' at line '.$oSourceNode->getLineNo().": could not be found A");
|
||||
throw new Exception(MFDocument::GetItopNodePath($oSourceNode).' at line '.$oSourceNode->getLineNo().": could not be found");
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -435,6 +435,7 @@ class ModelFactory
|
||||
$oTargetParentNode = $oTarget->GetNodeById('/itop_design/classes//class', $sParentId)->item(0);
|
||||
$oTargetNode->Delete();
|
||||
$oSourceNode->setAttribute('_delta', 'define');
|
||||
$sDeltaSpec = 'define';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1908,7 +1909,7 @@ class MFElement extends Combodo\iTop\DesignElement
|
||||
{
|
||||
echo "Dumping parent node<br/>\n";
|
||||
$oContainer->Dump();
|
||||
throw new Exception(MFDocument::GetItopNodePath($this).' at line '.$this->getLineNo().": could not be found B");
|
||||
throw new Exception(MFDocument::GetItopNodePath($this).' at line '.$this->getLineNo().": could not be found");
|
||||
}
|
||||
if (!$bIfExists)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user