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

SVN:trunk[4653]
This commit is contained in:
Romain Quetiez
2017-04-03 13:59:06 +00:00
parent 2876d7e08c
commit 5adb0fd556

View File

@@ -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;
}
}
}
}