Ver código fonte

Throw an expection in case of unexpected value for the _delta attribute in the XML...

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4042 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 9 anos atrás
pai
commit
36fd4b7f90
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3 0
      setup/modelfactory.class.inc.php

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

@@ -488,6 +488,9 @@ class ModelFactory
 			}
 			$oTargetNode->Delete();
 			break;
+			
+		default:
+			throw new Exception(MFDocument::GetItopNodePath($oSourceNode).' at line '.$oSourceNode->getLineNo().": unexpected value for attribute _delta: '".$oSourceNode->getAttribute('_delta')."'");
 		}
 
 		if ($oSourceNode->hasAttribute('_rename_from'))