浏览代码

Customizations/XML: clearer error reporting when encountering a duplicate value for an AttributeEnum

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3699 a333f486-631f-4898-b8df-5754b55c2be0
romainq 10 年之前
父节点
当前提交
47ead95a0c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      setup/modelfactory.class.inc.php

+ 1 - 1
setup/modelfactory.class.inc.php

@@ -1431,7 +1431,7 @@ class MFElement extends DOMElement
 						if (array_key_exists($key, $res))
 						{
 							// Houston!
-							throw new DOMFormatException("Tag ".$oItem->getNodePath().", id '$key' already used!!!");
+							throw new DOMFormatException("Tag ".MFDocument::GetItopNodePath($oItem).", id '$key' already used!!!");
 						}
 						$res[$key] = $oItem->GetNodeAsArrayOfItems();
 					}