We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Non-string values are not searchable for laravel collections in global search.
.../vendor/yajra/laravel-datatables-oracle/src/CollectionDataTable.php
protected function globalSearch(string $keyword): void ... foreach ($this->request->searchableColumnIndex() as $index) { $column = $this->getColumnName($index); $value = Arr::get($data, $column); if (! is_string($value)) { continue; } else { $value = $this->config->isCaseInsensitive() ? Str::lower($value) : $value; } ... }
Due to "continue", we leave the foreach loop and it does all non string values non searchable. My solution:
if (is_string($value)) { $value = $this->config->isCaseInsensitive() ? Str::lower($value) : $value; }
Please help me to unterstand, is this a bug or are non string values not supposed to be searchable? Thank you!
The text was updated successfully, but these errors were encountered:
This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Sorry, something went wrong.
up
No branches or pull requests
Summary of problem or feature request
Non-string values are not searchable for laravel collections in global search.
Code snippet of problem
.../vendor/yajra/laravel-datatables-oracle/src/CollectionDataTable.php
Due to "continue", we leave the foreach loop and it does all non string values non searchable.
My solution:
Please help me to unterstand, is this a bug or are non string values not supposed to be searchable?
Thank you!
System details
The text was updated successfully, but these errors were encountered: