Province filter broke against Views 7.x-3.25

Created on 21 October 2022, about 2 years ago
Updated 18 April 2023, over 1 year ago

Not sure where the blame lies here, but after #3185587: Select filters in exposed blocks don't use their default value β†’ a province filter will by default filter on a blank province.

This is because the default value in the filter was -1 and Views is now running a !empty() check on it. -1 is not considered empty so the filter is applied by default.

But also the filter preset isn't remembered and there isn't an "Any" option in the list so it's impossible to default the filter to show all provinces.

I think this fixes all the issues.

πŸ› Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States djdevin Philadelphia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024