Skip to content

Commit b2aa1a6

Browse files
committed
feat: convert list into comma separated keyword
1 parent e85571a commit b2aa1a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/QueryDataTable.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,12 +352,13 @@ public function columnControlSearch(): void
352352
}
353353

354354
if ($this->hasFilterColumn($columnName)) {
355+
$value = $list ? implode(', ', $list) : $value;
355356
$this->applyFilterColumn($this->getBaseQueryBuilder(), $columnName, $value);
356357

357358
continue;
358359
}
359360

360-
if (is_array($list) && count($list) > 0) {
361+
if ($list) {
361362
if (str_contains($logic, 'not')) {
362363
$this->query->whereNotIn($columnName, $list);
363364
} else {

0 commit comments

Comments
 (0)