When you create a View with an Optional Exposed Filter for a given flag, it always picks "True" as the default, rather then given you the chance to choose the default as , True, or False.

Comments

cbrookins’s picture

When optional the default should be "(Any)" - and of course that should be able to be changed

quicksketch’s picture

Title: Views: Exposed Filter Optional flag picks "True" as default » Boolean Exposed Filter Optional always picks "True" as default
Project: Flag » Views (for Drupal 7)
Component: Views integration » exposed filters
Category: bug » feature

Flag uses the standard Views "Boolean" indicator, which is responsible for the exposed filter you're seeing. This change should be made in Views.

merlinofchaos’s picture

Status: Active » Closed (works as designed)

The basic Views boolean filter, when exposed, defaults to whatever the filter is selected as. I just tested this with Node: Sticky to verify.

MickC’s picture

Is there a way to set default to any?
I notice after changing the filter to then "?flag=All" is added to the URL.
Then I tried adding these characters to the path in the view but ? comes out as %3F and = as %3D.
Is there a way to override the path?

Thanks