We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e9b51e commit 96df1bfCopy full SHA for 96df1bf
src/QueryDataTable.php
@@ -618,6 +618,7 @@ public function limit(callable $callback)
618
public function paging()
619
{
620
$max_records_per_page = $this->config->get('datatables.max_records_per_page', 0);
621
+ $limit = (int) $this->request->input('length') > 0 ? $this->request->input('length') : 10;
622
$limit = ($max_records_per_page > 0 && $limit > $max_records_per_page) ? $max_records_per_page : $limit;
623
if (is_callable($this->limitCallback)) {
624
$this->query->limit($limit);
0 commit comments