#12789 fixed pagination in events

This commit is contained in:
Daniel Cebrian 2024-01-30 09:25:17 +01:00
parent 61e38865f6
commit 4971c29819
1 changed files with 11 additions and 9 deletions

View File

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