mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
N°7636 - Too many OQL requests executed in order to display a lnk (#661)
This commit is contained in:
@@ -70,8 +70,14 @@ class AjaxRenderController
|
||||
$bShowObsoleteData = utils::ShowObsoleteData();
|
||||
}
|
||||
$oSet->SetShowObsoleteData($bShowObsoleteData);
|
||||
$iCount = 0;
|
||||
if (isset($aExtraParams['object_count'])) {
|
||||
$iCount = $aExtraParams['object_count'];
|
||||
} else {
|
||||
$iCount = $oSet->Count();
|
||||
}
|
||||
$aResult["draw"] = $iDrawNumber;
|
||||
$aResult["recordsTotal"] = $oSet->Count();
|
||||
$aResult["recordsTotal"] = $iCount;
|
||||
$aResult["recordsFiltered"] = $aResult["recordsTotal"] ;
|
||||
$aResult["data"] = [];
|
||||
while ($aObject = $oSet->FetchAssoc()) {
|
||||
|
||||
Reference in New Issue
Block a user