Skip to content

Commit 7ca1958

Browse files
authored
Merge pull request yajra#2222 from yajra/fix-skip
[9.0] Fix skipTotalRecords api not working on initial state.
2 parents bb6ff7b + f12d404 commit 7ca1958

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/QueryDataTable.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,9 @@ public function keepSelectBindings()
158158
public function totalCount()
159159
{
160160
if ($this->skipTotalRecords) {
161-
return true;
161+
$this->isFilterApplied = true;
162+
163+
return 1;
162164
}
163165

164166
return $this->totalRecords ? $this->totalRecords : $this->count();

0 commit comments

Comments
 (0)