diff --git a/core/dbunionsearch.class.php b/core/dbunionsearch.class.php index 01a0e2a8b..72769ca42 100644 --- a/core/dbunionsearch.class.php +++ b/core/dbunionsearch.class.php @@ -498,7 +498,7 @@ class DBUnionSearch extends DBSearch { if (count($this->aSearches) == 1) { - return $this->aSearches[0]->GetSQLQueryStructure($aAttToLoad, $bGetCount, $aGroupByExpr, $aSelectExpr); + return $this->aSearches[0]->GetSQLQueryStructure($aAttToLoad, $bGetCount, $aGroupByExpr, $aSelectedClasses, $aSelectExpr); } $aSQLQueries = array();