Skip to content

Commit 7002e1e

Browse files
dekijovicDejan Jovic
andauthored
Adding empty string as a value and making column search parameter optional in request body (#323)
Co-authored-by: Dejan Jovic <[email protected]>
1 parent e6a6aa5 commit 7002e1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DataTableState.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ private function handleSearch(ParameterBag $parameters): void
102102
{
103103
foreach ($parameters->all()['columns'] ?? [] as $key => $search) {
104104
$column = $this->dataTable->getColumn((int) $key);
105-
$value = $this->isInitial ? $search : $search['search']['value'];
105+
$value = $this->isInitial ? $search : $search['search']['value'] ?? "";
106106

107107
if ($column->isSearchable() && ('' !== trim($value))) {
108108
$this->setColumnSearch($column, $value);

0 commit comments

Comments
 (0)