Skip to content

Is it possible to add filter on an HABTM associated model's field ? #1342

@Val

Description

@Val

I'm trying to override list view pretty_value on associated model to provide a quick link to associated model's list using filter to show only associated records.

It works well for has_many associations but not for HABTM ones.

To see it try this gist : https://gist.github.com/3810559

Author 1-N Book works
Book N-N Collection doesn't : if you try to add a book filter in collection list or a collection filter in book list there is no selector option ("contains", "is exactly", etc.)

Any tips or documentation pointer ?
Regards.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions