When I create an exposed filter with optional list of (single selection) values, in the view preview the 'All' value on top of the list is selected by default (good).

In my page view however, the first 'real' value is selected by default (wrong). If a user makes a selection of a real value, it is remembered when the user returns to the page.

If a user selects 'All', it lists all values correctly in the view but the setting is only remembered as long as the user stays on the page. If the user returns to the page, the first 'real' value is again selected, not 'All' which should be selected.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

merlinofchaos’s picture

Status: Active » Postponed (maintainer needs more info)

In your exposed filter configuration, is that first real value selected? Because when a filter is exposed, the value selected there is considered the default.

wouter99999’s picture

Thanks, I had all values selected... If I unselect them it works :)

The exposed filter configuration interface might need a change because it it confusing:
Now you select as operater 'is one of' and then next to it the options. So you would think that you have to check any option there that you want to include in 'is one of'. 'options' should be renamed to 'default options selected', and should allow only one if 'force single' is selected.

esmerel’s picture

Priority: Major » Normal
Status: Postponed (maintainer needs more info) » Active
dawehner’s picture

FileSize
16.04 KB

In the new ui we have this kind of "select all" checkbox, see attachment.

This seems to fix the UX problem with this.

dawehner’s picture

Status: Active » Fixed

Mark as fixed based on #4

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

knalstaaf’s picture

Status: Closed (fixed) » Active
FileSize
6.6 KB

#4 works for the content type filter, but there is an issue when taxonomy is being used.

If you don't select any of the taxonomy terms and hit "Apply" straight away - it's fine. But if your first choice is to select some of them, and you change your mind thinking "they should all be available" after all, you cannot undo this.

At least one option remains selected. I think this is default select-list behaviour, but in this case, it's rather painful. It means that you have to

  1. delete your filter,
  2. add it again
  3. and configure it from scratch just to get your list back without anything selected.

This behaviour occurs in every browser.

Edit: Since this report isn't directly related to the original issue, I created a new issue: #1744224: Unable to deselect all options of taxonomy filter

knalstaaf’s picture

Status: Active » Closed (fixed)
Anonymous’s picture

Issue summary: View changes