Skip to content

Commit

Permalink
Cast records_per_page as int
Browse files Browse the repository at this point in the history
Generates an error if a string (from the request) is passed into Illuminate\Database\Query\Builder::limit() with MongoDB driver.
  • Loading branch information
hackel committed Jan 28, 2016
1 parent f99001d commit c40220f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Components/RecordsPerPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function getValue()
if ($from_input === null) {
return $this->grid->getConfig()->getPageSize();
} else {
return $from_input;
return (int) $from_input;
}
}

Expand Down

0 comments on commit c40220f

Please sign in to comment.