Browse Source

#1140 UNION queries not working -in fact, loss of the optimization on column load when filtering on org hierarchies (retrofit possible but the fix will be located in MetaModel)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3721 a333f486-631f-4898-b8df-5754b55c2be0
romainq 9 years ago
parent
commit
e8b4c78402
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/dbobjectsearch.class.php

+ 1 - 1
core/dbobjectsearch.class.php

@@ -1553,7 +1553,7 @@ class DBObjectSearch extends DBSearch
 					elseif(MetaModel::GetAttributeOrigin($sKeyClass, $sKeyAttCode) == $sTableClass)
 					{
 						$oBuild->m_oQBExpressions->PushJoinField(new FieldExpression($sKeyAttCode, $sKeyClassAlias));
-						$oSelectExtKey = $oExtFilter->MakeSQLObjectQuery($oBuild);
+						$oSelectExtKey = $oExtFilter->MakeSQLObjectQuery($oBuild, $aAttToLoad);
 						$oJoinExpr = $oBuild->m_oQBExpressions->PopJoinField();
 						$sExternalKeyTable = $oJoinExpr->GetParent();
 						$sExternalKeyField = $oJoinExpr->GetName();