N.536 Regression introduced in [r4469] (N.505), itself fixing a regression introduced in [r4404]. REQUIRES TESTING

SVN:trunk[4488]
This commit is contained in:
Romain Quetiez
2016-12-02 20:37:13 +00:00
parent 6ac6aea29f
commit d5c3b8d8e2
2 changed files with 44 additions and 1 deletions

View File

@@ -1426,6 +1426,7 @@ class DBObjectSearch extends DBSearch
}
}
$sRawId .= $bGetCount;
$sRawId .= implode(',', $aSelectedClasses); // Unions may alter the list of selected columns
$sOqlId = md5($sRawId);
}
else
@@ -1476,7 +1477,7 @@ class DBObjectSearch extends DBSearch
if (!isset($oSQLQuery))
{
$oKPI = new ExecutionKPI();
$oSQLQuery = $oSearch->BuildSQLQueryStruct($aAttToLoad, $bGetCount, $aModifierProperties, $aGroupByExpr);
$oSQLQuery = $oSearch->BuildSQLQueryStruct($aAttToLoad, $bGetCount, $aModifierProperties, $aGroupByExpr, $aSelectedClasses);
$oKPI->ComputeStats('BuildSQLQueryStruct', $sOqlQuery);
if (self::$m_bQueryCacheEnabled)