Merge branch 'ent-9747-14463-faltan-eventos-en-la-consola-cuando-se-seleccionan-todos' into 'develop'

Ent 9747 14463 faltan eventos en la consola cuando se seleccionan todos

See merge request artica/pandorafms!5251
This commit is contained in:
Rafael Ameijeiras 2022-12-12 22:54:27 +00:00
commit 884e07d11e
1 changed files with 5 additions and 2 deletions

View File

@ -1840,11 +1840,14 @@ function events_get_all(
);
if (isset($limit, $offset) === true
&& $limit !== 0
&& (int) $limit !== 0
&& isset($filter['csv_all']) === false
) {
$count = count($data);
$end = ((int) $offset !== 0) ? ($offset + $limit) : $limit;
// -1 For pagination 'All'.
((int) $limit === -1)
? $end = count($data)
: $end = ((int) $offset !== 0) ? ($offset + $limit) : $limit;
$finally = array_slice($data, $offset, $end, true);
$return = [
'buffers' => $buffers,