platanus / activeadmin_addons

Extends ActiveAdmin to enable a set of great optional UX improving add-ons
MIT License
763 stars 288 forks source link

Fix searching for ids with selected list input #489

Closed vaot closed 2 months ago

vaot commented 1 year ago

Motivation / Background

Detail

This Pull Request changes the predicate to eq when the field is id.

Additional information

From:

{"groupings"=>{"0"=>{"m"=>"or", "name_cont"=>"test", "id_cont"=>"test"}}, "combinator"=>"and"}

To:

{"groupings"=>{"0"=>{"m"=>"or", "name_cont"=>"test", "id_eq"=>"test"}}, "combinator"=>"and"}

Checklist

Before submitting the PR make sure the following are checked: