Skip to content

Commit

Permalink
Merge pull request #2513 from yajra/patch1
Browse files Browse the repository at this point in the history
Fix resolution of custom search pane query builder.
  • Loading branch information
yajra authored Nov 11, 2020
2 parents 568e670 + da1bae8 commit 3c06847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QueryDataTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ protected function searchPanesSearch()
continue;
}

if ($callback = data_get($this->searchPanes, $column . '.builder')) {
if ($this->searchPanes[$column] && $callback = $this->searchPanes[$column]['builder']) {
$callback($this->getBaseQueryBuilder(), $values);
} else {
$this->getBaseQueryBuilder()->whereIn($column, $values);
Expand Down

0 comments on commit 3c06847

Please sign in to comment.