Skip to content

Commit

Permalink
Merge pull request #6 from BRACKETS-by-TRIAD/hotfix-per-page
Browse files Browse the repository at this point in the history
Added fix to per page be int in response
  • Loading branch information
dejwCake committed Jul 8, 2019
2 parents f687110 + 0796928 commit 170bcc2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/AdminListing.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,8 @@ private function searchLike($query, $column, $token) {
*/
public function attachPagination($currentPage, $perPage = 10) {
$this->hasPagination = true;
$this->currentPage = $currentPage;
$this->perPage = $perPage;
$this->currentPage = (int)$currentPage;
$this->perPage = (int)$perPage;

return $this;
}
Expand Down Expand Up @@ -361,4 +361,4 @@ protected function materializeColumnNames(Collection $columns, $translated = fal
})->toArray();
}

}
}

0 comments on commit 170bcc2

Please sign in to comment.