瀏覽代碼

Archives: filter out archived objects from the impact analysis, even when in Archive Mode

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4707 a333f486-631f-4898-b8df-5754b55c2be0
romainq 8 年之前
父節點
當前提交
4ae0c364e6
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      core/relationgraph.class.inc.php

+ 3 - 0
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();
 				}