Closed ToshY closed 4 months ago
Problem
Using ArrayAdapter with the options searchable => false or globalSearchable => false on any type of column does not do anything. It still returns all the results.
ArrayAdapter
searchable => false
globalSearchable => false
Reproduction
Example from docs, including searchable and globalSearchable options
searchable
globalSearchable
$dataTable = $dataTableFactory->create() ->add('firstName', TextColumn::class, ['searchable' => false, 'globalSearchable' => false]) ->add('lastName', TextColumn::class) ->createAdapter(ArrayAdapter::class, [ ['firstName' => 'Donald', 'lastName' => 'Trump'], ['firstName' => 'Barack', 'lastName' => 'Obama'], ]) ->handleRequest($request); if ($dataTable->isCallback()) { return $dataTable->getResponse(); }
Checking in UI and searching on donald gives back the result, even though it should not be searchable.
donald
Version
omines/datatables-bundle: 0.8.2
datatables.net-bs5: 2.0.5
Problem
Using
ArrayAdapter
with the optionssearchable => false
orglobalSearchable => false
on any type of column does not do anything. It still returns all the results.Reproduction
Example from docs, including
searchable
andglobalSearchable
optionsChecking in UI and searching on
donald
gives back the result, even though it should not be searchable.Version
omines/datatables-bundle: 0.8.2
datatables.net-bs5: 2.0.5