Filters dont work anymore

I’ve got many filters setup like this:

    category:
        type: dropdown
        conditions: category_id in (:filtered)

    permission:
        type: dropdown
        conditions: permission in (:filtered)

I removed label, options etc to keep the code short.

Those filters dont work anymore so I went into the test plugin and changed this filter of the locations:

    city:
        label: City
        type: dropdown
        conditions: city_id in (:filtered)
        modelClass: October\Test\Models\Location
        options: getCityOptions
        dependsOn: country
        emptyOption: Unspecified

Basically this is of type group and I changed it to type dropdown.

I expected it to work since I didnt have problems doing so before.

When I change the filter to this here it works:

    city_id:
        label: City
        type: dropdown
        modelClass: October\Test\Models\Location
        options: getCityOptions
        dependsOn: country
        emptyOption: Unspecified

Was there a change in the conditions of dropdown filters to that those dont work anymore?
(Or let me say it in other words: I see there was one with 3.5.5, but could this caused somethign to break this)

It should be singular, like this:

conditions: category_id = :value

A dropdown only provides a single value.

1 Like