N°5594 - Dashboard Bug with Group by (table) - iTop 3.0 (#466)

This commit is contained in:
Anne-Catherine
2023-06-14 11:06:25 +02:00
committed by GitHub
parent add038d649
commit 5185f721bd

View File

@@ -151,7 +151,10 @@ class StaticTable extends UIContentBlock
return "$.post('".utils::GetAbsoluteUrlAppRoot()."pages/ajax.render.php?operation=refreshDashletList', ".json_encode($aParams).",
function (data) {
$('#".$this->sId."').DataTable().clear();
$('#".$this->sId."').dataTable().fnAddData(data);
if (data.length>0)
{
$('#".$this->sId."').dataTable().fnAddData(data);
}
});";
}