Skip to content

Commit aacd9a3

Browse files
committed
consider black listed columns on column search
1 parent 1fc2ca8 commit aacd9a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/QueryDataTable.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,12 +278,12 @@ public function columnSearch()
278278
$columns = $this->request->columns();
279279

280280
foreach ($columns as $index => $column) {
281-
if (! $this->request->isColumnSearchable($index)) {
281+
$column = $this->getColumnName($index);
282+
283+
if (! $this->request->isColumnSearchable($index) || $this->isBlacklisted($column)) {
282284
continue;
283285
}
284286

285-
$column = $this->getColumnName($index);
286-
287287
if ($this->hasFilterColumn($column)) {
288288
$keyword = $this->getColumnSearchKeyword($index, $raw = true);
289289
$this->applyFilterColumn($this->getBaseQueryBuilder(), $column, $keyword);

0 commit comments

Comments
 (0)