Skip to content

Commit

Permalink
Merge commit 'c27547fc865daa256a538d64e1a701f5dd7a3ecc'
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeulen committed Mar 27, 2019
2 parents a699dcd + c27547f commit 8ac51b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function manageAction(Request $request)
$raList = $service->search($searchQuery);

$pagination = $this->getPaginator()->paginate(
$raList->getTotalItems() > 0 ? array_fill(0, $raList->getTotalItems(), 1) : [],
$raList->getTotalItems() > 0 ? $raList->getElements() : [],
$raList->getCurrentPage(),
$raList->getItemsPerPage()
);
Expand Down Expand Up @@ -109,7 +109,7 @@ public function raCandidateSearchAction(Request $request)
$raCandidateList = $service->search($command);

$pagination = $this->getPaginator()->paginate(
$raCandidateList->getTotalItems() > 0 ? array_fill(4, $raCandidateList->getTotalItems(), 1) : [],
$raCandidateList->getTotalItems() > 0 ? $raCandidateList->getElements() : [],
$raCandidateList->getCurrentPage(),
$raCandidateList->getItemsPerPage()
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public function auditLogAction(Request $request)
$auditLog = $this->getAuditLogService()->getAuditlog($command);

$pagination = $this->get('knp_paginator')->paginate(
$auditLog->getTotalItems() > 0 ? array_fill(0, $auditLog->getTotalItems(), 1) : [],
$auditLog->getTotalItems() > 0 ? $auditLog->getElements() : [],
$auditLog->getCurrentPage(),
$auditLog->getItemsPerPage()
);
Expand Down

0 comments on commit 8ac51b0

Please sign in to comment.