mirror of
https://github.com/LibreSign/libresign.git
synced 2025-12-18 05:20:45 +01:00
feat(id-docs): Pass sort array to mapper in IdDocsService
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
This commit is contained in:
parent
717cd74910
commit
a3bfa642fc
1 changed files with 2 additions and 2 deletions
|
|
@ -122,10 +122,10 @@ class IdDocsService {
|
|||
}
|
||||
}
|
||||
|
||||
public function list(array $filter, ?int $page = null, ?int $length = null): array {
|
||||
public function list(array $filter, ?int $page = null, ?int $length = null, array $sort = []): array {
|
||||
$page = $page ?? 1;
|
||||
$length = $length ?? (int)$this->appConfig->getValueInt(Application::APP_ID, 'length_of_page', 100);
|
||||
$data = $this->idDocsMapper->list($filter, $page, $length);
|
||||
$data = $this->idDocsMapper->list($filter, $page, $length, $sort);
|
||||
$data['pagination']->setRouteName('ocs.libresign.File.list');
|
||||
$pagination = $data['pagination']->getPagination($page, $length, $filter);
|
||||
return [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue