Skip to content

Commit 96df1bf

Browse files
committed
COde Fix
1 parent 2e9b51e commit 96df1bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/QueryDataTable.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,7 @@ public function limit(callable $callback)
618618
public function paging()
619619
{
620620
$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;
621622
$limit = ($max_records_per_page > 0 && $limit > $max_records_per_page) ? $max_records_per_page : $limit;
622623
if (is_callable($this->limitCallback)) {
623624
$this->query->limit($limit);

0 commit comments

Comments
 (0)