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
I have a scope involving multiple fields, and some of those fields are multi-select fields.
I noticed that Filterrific drops some of the params for this multi-input scope. After investigating, I found out that the dropped params are the array-type params.
For example:
<%= fields_for :with_skills do |skills_form| %><%= f.select :skills, skill_options, multiple: true %><%= f.select :expertise, expertise_options %><% end %>
In this case, params will receive something like: {filters: { with_skills: {skills: ["knitting", "kungfu"], expertise: "mentor"}}}
Filterrific will accept the expertise filter, but not the skills filter.
Hi, folks,
I have a scope involving multiple fields, and some of those fields are multi-select fields.
I noticed that Filterrific drops some of the params for this multi-input scope. After investigating, I found out that the dropped params are the array-type params.
For example:
In this case,
params
will receive something like:{filters: { with_skills: {skills: ["knitting", "kungfu"], expertise: "mentor"}}}
Filterrific will accept the
expertise
filter, but not theskills
filter.I noticed https://github.com/jhund/filterrific/blob/master/lib/filterrific/param_set.rb#L27 handles multi-input scopes and multi-select fields, but not both. I plan to open a PR fixing this.
The text was updated successfully, but these errors were encountered: