From da1bae85c1deb23579c1385f295dba8f1f5314e1 Mon Sep 17 00:00:00 2001 From: "Arjay Q. Angeles" Date: Wed, 11 Nov 2020 15:08:36 +0800 Subject: [PATCH] Fix resolution of custom search pane builder. --- src/QueryDataTable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);