mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
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:
commit
eba2f45ed1
@ -6468,10 +6468,10 @@ function event_print_graph(
|
|||||||
$color[] = '#82b92f';
|
$color[] = '#82b92f';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
$interval_length = 0;
|
||||||
|
|
||||||
if ($num_intervals > 0) {
|
if ($num_intervals > 0) {
|
||||||
$interval_length = (int) ($period / $num_intervals);
|
$interval_length = (int) ($period / $num_intervals);
|
||||||
} else {
|
|
||||||
$interval_length = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$intervals = [];
|
$intervals = [];
|
||||||
|
@ -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.
|
// RecordsTotal && recordsfiltered resultados totales.
|
||||||
echo json_encode(
|
echo json_encode(
|
||||||
[
|
[
|
||||||
|
Loading…
x
Reference in New Issue
Block a user