From 5adb0fd55634860ba9f4c49a04c24101a9a657b6 Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Mon, 3 Apr 2017 13:59:06 +0000 Subject: [PATCH] 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] --- core/relationgraph.class.inc.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/core/relationgraph.class.inc.php b/core/relationgraph.class.inc.php index e7af4ff9f..73b8d7217 100644 --- a/core/relationgraph.class.inc.php +++ b/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; + } } } }