N°5727 - REST API/get_related: Seemingly wrong results, when using [impacts, up] with [redundancy: true]

This commit is contained in:
Eric Espie
2022-11-16 13:51:38 +01:00
parent 2f8f0b658c
commit 282d47aed4
3 changed files with 4 additions and 3 deletions

View File

@@ -574,7 +574,7 @@ class CoreServices implements iRestServiceProvider
$oObject = $oElement->GetProperty('object');
if ($oObject)
{
if ($bEnableRedundancy)
if ($bEnableRedundancy && $sDirection == 'down')
{
// Add only the "reached" objects
if ($oElement->GetProperty('is_reached'))