Explorar el Código

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

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4194 a333f486-631f-4898-b8df-5754b55c2be0

romainq hace 9 años
padre
commit
79f384b5e7
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      setup/modelfactory.class.inc.php

+ 3 - 2
setup/modelfactory.class.inc.php

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