mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 01:58:47 +02:00
N°3988 - Investigate small list taking a very long time to load
This commit is contained in:
@@ -313,13 +313,10 @@ class AjaxRenderController
|
||||
$aResult["data"] = [];
|
||||
while ($aObject = $oSet->FetchAssoc()) {
|
||||
foreach ($aClassAliases as $sAlias => $sClass) {
|
||||
if (isset($aColumns[$sAlias])) {
|
||||
foreach ($aColumns[$sAlias] as $sAttCode => $oAttDef) {
|
||||
if ($sAttCode == "_key_") {
|
||||
$aObj[$sAlias."/".$sAttCode] = $aObject[$sAlias]->GetKey();
|
||||
} else {
|
||||
$aObj[$sAlias."/".$sAttCode] = $aObject[$sAlias]->GetAsHTML($sAttCode);
|
||||
}
|
||||
if (isset($aObject[$sAlias])) {
|
||||
$aObj[$sAlias."/_key_"] = $aObject[$sAlias]->GetKey();
|
||||
foreach ($aObject[$sAlias]->GetCurrentValues() as $sAttCode => $oAttDef) {
|
||||
$aObj[$sAlias."/".$sAttCode] = $aObject[$sAlias]->GetAsHTML($sAttCode);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user