Skip to content
Snippets Groups Projects
Verified Commit eb952e23 authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[BUGFIX] Fix joblist pagination for currentPage=0

parent 96a71706
No related branches found
No related tags found
No related merge requests found
......@@ -304,7 +304,7 @@ class JoblistController extends ActionController {
// get all jobs for the current page
$allJobsCount = $this->jobRepository->findJobsByFilter($filters)->count();
$numberOfPages = (int) ($jobLimit <= 0 ? 0 : \ceil($allJobsCount / $jobLimit));
if ($numberOfPages !== 0 && $currentPageBrowserPage >= $numberOfPages) {
if ($numberOfPages !== 0 && $currentPageBrowserPage > $numberOfPages) {
/** @var PageRenderer $pageRenderer */
$pageRenderer = GeneralUtility::makeInstance(PageRenderer::class);
// the PageRenderer contains the content of the current request, the result of the following sub-request will
......
......@@ -12,7 +12,7 @@ routeEnhancers:
value: seite-jobs
currentPage:
type: StaticRangeMapper
start: '1'
start: '0'
end: '100'
defaults:
currentPage: '0'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment