diff --git a/src/QueryDataTable.php b/src/QueryDataTable.php index 24840971..38a83cfb 100644 --- a/src/QueryDataTable.php +++ b/src/QueryDataTable.php @@ -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);