Ver código fonte

N.447 Impact analysis: messing up redundancy settings (could either lead to wrong results or a fatal error if a relation is configured downstream)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4653 a333f486-631f-4898-b8df-5754b55c2be0
romainq 8 anos atrás
pai
commit
a87d98cf63
1 arquivos alterados com 6 adições e 3 exclusões
  1. 6 3
      core/relationgraph.class.inc.php

+ 6 - 3
core/relationgraph.class.inc.php

@@ -540,10 +540,13 @@ class RelationGraph extends SimpleGraph
 			{
 				if ($oAttDef->Get('relation_code') == $sRelCode)
 				{
-					if ($oAttDef->Get('neighbour_id') == $aQueryInfo['sNeighbour'])
+					if ($oAttDef->Get('from_class') == $aQueryInfo['sFromClass'])
 					{
-						$oRet = $oAttDef;
-						break;
+						if ($oAttDef->Get('neighbour_id') == $aQueryInfo['sNeighbour'])
+						{
+							$oRet = $oAttDef;
+							break;
+						}
 					}
 				}
 			}