diff --git a/core/dbobject.class.php b/core/dbobject.class.php index f09321fb5..ec5a24245 100644 --- a/core/dbobject.class.php +++ b/core/dbobject.class.php @@ -4631,8 +4631,9 @@ abstract class DBObject implements iDisplay public function GetRelatedObjectsUp($sRelCode, $iMaxDepth = 99, $bEnableRedundancy = true) { $oGraph = new RelationGraph(); - $oGraph->AddSourceObject($this); + $oGraph->AddSinkObject($this); $oGraph->ComputeRelatedObjectsUp($sRelCode, $iMaxDepth, $bEnableRedundancy); + return $oGraph; }