Skip to content

Commit 30d8619

Browse files
committed
Merge pull request #171 from nesl247/master
Fixes pagination occurring even if it is disabled in DataTables.
2 parents 2f31def + 9b89c60 commit 30d8619

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Bllim/Datatables/Datatables.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ protected function includeInArray($item, $array)
612612
*/
613613
protected function paging()
614614
{
615-
if (!is_null($this->input['start']) && !is_null($this->input['length'])) {
615+
if (!is_null($this->input['start']) && !is_null($this->input['length']) && $this->input['length'] != -1) {
616616
$this->query->skip($this->input['start'])->take((int)$this->input['length'] > 0 ? $this->input['length'] : 10);
617617
}
618618
}

0 commit comments

Comments
 (0)