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
Prioritize filters with predicates in active filter labels (#7702)
When there are filters for a single field and a multi-field ransack
search with predicate, the multi-field label on the active filter
should use the custom label from the filter input box.
Reproduction steps:
./app/admin/posts.rb
```
ActiveAdmin.register Post do
filter :title_or_body_contains, as: :string, label: 'Title or Body'
filter :title, as: :string
...
end
```
Navigate to the posts path for a user like
`localhost:3000/admin/users/4/posts`
Complete search in both fields, note that both active filters use the
label "Title contains". The `title_or_body_contains` should use the
label from the filter "Title or Body contains".
0 commit comments