PMCORE-2548:Review pagination in the tables.

This commit is contained in:
fabio
2020-12-15 17:34:47 -04:00
parent 816d9e4cb1
commit 171cc32e16
8 changed files with 68 additions and 26 deletions

View File

@@ -473,7 +473,7 @@ class Home extends Api
$result = [];
$result['data'] = $list->getData();
// We will to enable always the pagination
$result['total'] = $list->getLimit() + 1;
$result['total'] = $list->getCounter();
return $result;
} catch (Exception $e) {
throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());