Merge branch 'ent-12629-Eventos-se-quedan-tostados-cuando-el-filtro-no-encuentra-nada' into 'develop'

fix filter bug

See merge request artica/pandorafms!6761
This commit is contained in:
Diego Muñoz-Reja 2024-01-29 12:39:42 +00:00
commit eba2f45ed1
2 changed files with 11 additions and 2 deletions

View File

@ -6468,10 +6468,10 @@ function event_print_graph(
$color[] = '#82b92f';
}
} else {
$interval_length = 0;
if ($num_intervals > 0) {
$interval_length = (int) ($period / $num_intervals);
} else {
$interval_length = 0;
}
$intervals = [];

View File

@ -1253,6 +1253,15 @@ if (is_ajax() === true) {
);
}
$data = array_values(
array_filter(
($data ?? []),
function ($item) {
return (bool) (array) $item;
}
)
);
$count = count($data);
// RecordsTotal && recordsfiltered resultados totales.
echo json_encode(
[