Skip to content

Commit

Permalink
Add globalSearchable check for ArrayAdapter (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
ToshY committed May 13, 2024
1 parent 4f3dcb4 commit 4cb4874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Adapter/ArrayAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ protected function processRow(DataTableState $state, array $result, array $map,
foreach ($state->getDataTable()->getColumns() as $column) {
$value = (!empty($propertyPath = $map[$column->getName()]) && $this->accessor->isReadable($result, $propertyPath)) ? $this->accessor->getValue($result, $propertyPath) : null;
$value = $column->transform($value, $result);
if (!$match) {
if (!$match && $column->isGlobalSearchable()) {
$match = (false !== mb_stripos($value, $search));
}
$row[$column->getName()] = $value;
Expand Down

0 comments on commit 4cb4874

Please sign in to comment.