Open
Description
Extension
Something else
Describe the Bug
When configuring the module to search on integer type fields, the generated URL's contain invalid queries:
Invalid query. "integer" field type does not contain the "_icontains" filter operator.
In case the string comparison is out of reach for integer fields (because of the DB adapter), I'd say it should use the _eq
filter, but I'm not a knex expert.
To Reproduce
See screenshot below for an example setup. This setup works as expected but toggling 'ID' as a field to enable search on results in the above message. Both when searching using the cmd+K command pallet, as well as when using the search icon.
Directus Version
v11.4.0
Hosting Strategy
Self-Hosted (Docker Image)
Metadata
Assignees
Labels
No labels
Activity