From f5144c2bb15976ea2fc8a3c79df7cc6eb8754770 Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Thu, 27 Apr 2017 12:42:50 +0000 Subject: [PATCH] Archives: filter out archived objects from the impact analysis, even when in Archive Mode SVN:trunk[4707] --- core/relationgraph.class.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/relationgraph.class.inc.php b/core/relationgraph.class.inc.php index 73b8d7217..e3922b563 100644 --- a/core/relationgraph.class.inc.php +++ b/core/relationgraph.class.inc.php @@ -210,6 +210,7 @@ class RelationGraph extends SimpleGraph if ($sOQL === '') return; $oSearch = DBObjectSearch::FromOQL($sOQL); + $oSearch->SetArchiveMode(false); // Exclude archived objects anytime $aAliases = $oSearch->GetSelectedClasses(); if (count($aAliases) < 2 ) { @@ -394,6 +395,7 @@ class RelationGraph extends SimpleGraph try { $oFlt = DBObjectSearch::FromOQL($sQuery); + $oFlt->SetArchiveMode(false); // Exclude archived objects anytime $oObjSet = new DBObjectSet($oFlt, array(), $oObject->ToArgsForQuery()); $oRelatedObj = $oObjSet->Fetch(); } @@ -460,6 +462,7 @@ class RelationGraph extends SimpleGraph try { $oFlt = DBObjectSearch::FromOQL($sQuery); + $oFlt->SetArchiveMode(false); // Exclude archived objects anytime $oObjSet = new DBObjectSet($oFlt, array(), $oObject->ToArgsForQuery()); $iCount = $oObjSet->Count(); }