You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When searching for values in checkbox custom fields, ransack_ui doesn't generate the correct SQL for finding items.
Current SQL is
SELECT DISTINCT opportunities"."id" FROM "opportunities" WHERE "opportunities"."cf_engagement_stuff" = 'project funding' AND ('t'='t')
And the data in the table is stored in a YAML array format as:
---
- project funding
- option three
- ''
This would be picked up in a ransack contains query but not an 'is query. However, is is the only option as contains has disappeared in the most recent version.
Is there an easy way to get the following like query back via the contains option?
SELECT DISTINCT opportunities.id FROM "opportunities"
WHERE "opportunities"."cf_engagement_stuff" ILIKE '%project funding%' AND ('t'='t')
The text was updated successfully, but these errors were encountered:
When searching for values in checkbox custom fields, ransack_ui doesn't generate the correct SQL for finding items.
Current SQL is
And the data in the table is stored in a YAML array format as:
This would be picked up in a ransack
contains
query but not an 'is
query. However,is
is the only option ascontains
has disappeared in the most recent version.Is there an easy way to get the following like query back via the contains option?
The text was updated successfully, but these errors were encountered: