git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4653 a333f486-631f-4898-b8df-5754b55c2be0
@@ -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;
+ }
}