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
For checkbox inputs of associations with unique pluralization requirements, e.g. specialty/specialties, ExAdmin incorrectly pluralizes the <association>_ids param key: specialtys.
As a quick workaround, you can name the collection field so it takes the current pluralization logic, a simple prefix of s, into account. For example, instead of
For checkbox inputs of associations with unique pluralization requirements, e.g. specialty/specialties, ExAdmin incorrectly pluralizes the
<association>_ids
param key:specialtys
.In https://github.com/smpallen99/ex_admin/blob/master/lib/ex_admin/param_associations.ex#L34, if you replace
with
it fixes the issue.
As a quick workaround, you can name the collection field so it takes the current pluralization logic, a simple prefix of
s
, into account. For example, instead ofwhich will change the params key from
specialty_ids
tospecialtys
, you can dowhich changes the params key from
specialtie_ids
tospecialties
, which is what's needed.The text was updated successfully, but these errors were encountered: