From 6c3b3dc160a81f03686dc3636233340f2d98af0b Mon Sep 17 00:00:00 2001 From: Niels Keurentjes Date: Mon, 13 May 2024 17:39:36 +0200 Subject: [PATCH] Revert change that breaks tests for strange reasons --- src/Adapter/ArrayAdapter.php | 2 +- .../AppBundle/DataTable/Type/RegularPersonTableType.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Adapter/ArrayAdapter.php b/src/Adapter/ArrayAdapter.php index 3bd7347..376e754 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 && $column->isGlobalSearchable()) { + if (!$match) { $match = (false !== mb_stripos($value, $search)); } $row[$column->getName()] = $value; diff --git a/tests/Fixtures/AppBundle/DataTable/Type/RegularPersonTableType.php b/tests/Fixtures/AppBundle/DataTable/Type/RegularPersonTableType.php index 1d260df..12b09cb 100644 --- a/tests/Fixtures/AppBundle/DataTable/Type/RegularPersonTableType.php +++ b/tests/Fixtures/AppBundle/DataTable/Type/RegularPersonTableType.php @@ -25,7 +25,7 @@ */ class RegularPersonTableType implements DataTableTypeInterface { - public function configure(DataTable $dataTable, array $optionss): void + public function configure(DataTable $dataTable, array $options): void { $dataTable ->add('firstName', TextColumn::class)