-
Notifications
You must be signed in to change notification settings - Fork 20
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handling search for multi-select checkboxes #6
Comments
Basically, swapping 'is' for 'contains' on fields that are multi-select would be awesome. Can you point me in the right direction to fix this? |
@ndbroadbent any hints on how to change an 'is' to a 'contains' will try to look at this tomorrow. |
My internal hack was to do |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: