Skip to content

Commit

Permalink
Fix resolution of custom search pane builder.
Browse files Browse the repository at this point in the history
  • Loading branch information
yajra committed Nov 11, 2020
1 parent 568e670 commit da1bae8
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 da1bae8

Please sign in to comment.