From 6115808a6650e1b272c95142f54cf52fca43905a Mon Sep 17 00:00:00 2001 From: ToshY <31921460+ToshY@users.noreply.github.com> Date: Tue, 30 Apr 2024 18:51:58 +0000 Subject: [PATCH] added globalSearchable check for ArrayAdapter --- src/Adapter/ArrayAdapter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Adapter/ArrayAdapter.php b/src/Adapter/ArrayAdapter.php index 376e754..3bd7347 100644 --- a/src/Adapter/ArrayAdapter.php +++ b/src/Adapter/ArrayAdapter.php @@ -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;