Skip to content

Commit

Permalink
Fix pagination for recent jobs
Browse files Browse the repository at this point in the history
This fixes a bug that was introduced by #665, where the next/previous pagination buttons were not working on the recent jobs page.
  • Loading branch information
sebdesign committed Oct 2, 2019
1 parent 26d2f35 commit e39a9c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/RecentJobsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function index(Request $request)
? $this->paginate($request)
: $this->paginateByTag($request, $request->query('tag'));

$total = ! $request->query('tag')
$total = $request->query('tag')
? $this->tags->count('recent:'.$request->query('tag'))
: $this->jobs->countRecent();

Expand Down

0 comments on commit e39a9c2

Please sign in to comment.