Skip to content

Commit 4cb4874

Browse files
authored
Add globalSearchable check for ArrayAdapter (#341)
1 parent 4f3dcb4 commit 4cb4874

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Adapter/ArrayAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ protected function processRow(DataTableState $state, array $result, array $map,
103103
foreach ($state->getDataTable()->getColumns() as $column) {
104104
$value = (!empty($propertyPath = $map[$column->getName()]) && $this->accessor->isReadable($result, $propertyPath)) ? $this->accessor->getValue($result, $propertyPath) : null;
105105
$value = $column->transform($value, $result);
106-
if (!$match) {
106+
if (!$match && $column->isGlobalSearchable()) {
107107
$match = (false !== mb_stripos($value, $search));
108108
}
109109
$row[$column->getName()] = $value;

0 commit comments

Comments
 (0)