mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-01 22:48:45 +02:00
N°3914 - Polishing: Lists - fix display of datatable and rename attribute for init data
This commit is contained in:
@@ -63,7 +63,7 @@ class AjaxRenderController
|
||||
$oKPI = new ExecutionKPI();
|
||||
$aResult["draw"] = $iDrawNumber;
|
||||
$aResult["recordsTotal"] = $oSet->Count();
|
||||
$aResult["recordsFiltered"] = $oSet->Count();
|
||||
$aResult["recordsFiltered"] = $aResult["recordsTotal"] ;
|
||||
$aResult["data"] = [];
|
||||
while ($aObject = $oSet->FetchAssoc()) {
|
||||
$aObj = [];
|
||||
@@ -80,7 +80,7 @@ class AjaxRenderController
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isset($aObj)) {
|
||||
if (!empty($aObj)) {
|
||||
if ($sIdName != "") {
|
||||
if (isset($aObj[$sIdName])) {
|
||||
$aObj["id"] = $aObj[$sIdName];
|
||||
|
||||
Reference in New Issue
Block a user