Merge branch 'ent-12643-conteo-paginacion-de-eventos-no-funciona' into 'develop'

Ent 12643 conteo paginacion de eventos no funciona

See merge request artica/pandorafms!6781
This commit is contained in:
Rafael Ameijeiras 2023-12-19 15:05:05 +00:00
commit 46b315fbaf
1 changed files with 8 additions and 15 deletions

View File

@ -1242,6 +1242,7 @@ if (is_ajax() === true) {
}
}
$no_return = false;
if (empty($tmp) === false && $regex !== '') {
$regex_validation = false;
foreach (json_decode(json_encode($tmp), true) as $key => $field) {
@ -1251,28 +1252,20 @@ if (is_ajax() === true) {
}
if ($regex_validation === false) {
unset($tmp);
$no_return = true;
}
}
$carry[] = $tmp;
return $carry;
if ($no_return === false) {
$carry[] = $tmp;
return $carry;
} else {
return;
}
}
);
}
if (isset($data) === true) {
$data = array_values(
array_filter(
$data,
function ($item) {
return (bool) (array) $item;
}
)
);
$count = count($data);
}
// RecordsTotal && recordsfiltered resultados totales.
echo json_encode(
[