Merge branch 'ent-12543-16631-paginado-de-la-vista-eventos-en-metaconsola-los-elementos-a-mostrar-son-erroneos' into 'develop'

Ent 12543 [#16631]Paginado de la vista eventos en metaconsola, los elementos a mostrar son erroneos

See merge request artica/pandorafms!6712
This commit is contained in:
Matias Didier 2024-01-18 08:36:34 +00:00
commit fd0c2a3da6
1 changed files with 1 additions and 1 deletions

View File

@ -1969,7 +1969,7 @@ function events_get_all(
// -1 For pagination 'All'.
((int) $limit === -1)
? $end = count($data)
: $end = ((int) $offset !== 0) ? ($offset + $limit) : $limit;
: $end = $limit;
$finally = array_slice($data, $offset, $end, true);
$return = [
'buffers' => $buffers,