diff --git a/src/Surfnet/StepupRa/RaBundle/Controller/RaManagementController.php b/src/Surfnet/StepupRa/RaBundle/Controller/RaManagementController.php index 5841e4b7..a7e1b612 100644 --- a/src/Surfnet/StepupRa/RaBundle/Controller/RaManagementController.php +++ b/src/Surfnet/StepupRa/RaBundle/Controller/RaManagementController.php @@ -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() ); @@ -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() ); diff --git a/src/Surfnet/StepupRa/RaBundle/Controller/SecondFactorController.php b/src/Surfnet/StepupRa/RaBundle/Controller/SecondFactorController.php index 9606a5c3..ff5ec4e7 100644 --- a/src/Surfnet/StepupRa/RaBundle/Controller/SecondFactorController.php +++ b/src/Surfnet/StepupRa/RaBundle/Controller/SecondFactorController.php @@ -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() );