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:
commit
fd0c2a3da6
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue