PMCORE-2399

This commit is contained in:
Paula Quispe
2020-12-07 17:07:26 -04:00
parent 54d05bd31f
commit edc5b59009
17 changed files with 493 additions and 1586 deletions

View File

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