Skip to content

Commit

Permalink
Merge pull request #1473 from wuwx/patch-1
Browse files Browse the repository at this point in the history
[8.0] Fix filtered records total when using filterColumn.
  • Loading branch information
yajra authored Oct 27, 2017
2 parents f2044df + e15d509 commit 03fe790
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/QueryDataTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,12 @@ public function columnSearch()
if ($this->hasFilterColumn($column)) {
$keyword = $this->getColumnSearchKeyword($index, $raw = true);
$this->applyFilterColumn($this->getBaseQueryBuilder(), $column, $keyword);
continue;
} else {
$column = $this->resolveRelationColumn($column);
$keyword = $this->getColumnSearchKeyword($index);
$this->compileColumnSearch($index, $column, $keyword);
}

$column = $this->resolveRelationColumn($column);
$keyword = $this->getColumnSearchKeyword($index);
$this->compileColumnSearch($index, $column, $keyword);

$this->isFilterApplied = true;
}
}
Expand Down

0 comments on commit 03fe790

Please sign in to comment.