Hi

I like the idea to create views with exposed filters to filter for taxonomy terms. But since the last release there is an annoying entry in the taxonomy list "- Please choose -". Could you tell me how to get rid of this entry? I prefer having the "All" entry as default (by checking "Optional") and therefore don't need the "- Please choose -" entry.

Thanks

Comments

michelle’s picture

Assigned: tobiass » Unassigned

I've been searching and this is the only reference I found to this problem. I know views 1 is a super low priority but I'm hoping someone has an idea. It makes the exposed filters really confusing. :(

Thanks,

Michelle

PS: tobiass - Don't assign yourself unless you plan to fix it.

dtabach’s picture

workaround: enable "Multiple select" for the vocabulary you want to filter by, and "please choose" will get off. But, of course, only if allowing multiple selection would not arise other issues in your scenario.

sun’s picture

Status: Active » Fixed

Defined by taxonomy.module, line 627:

  if (!$vocabulary->multiple) {
    $blank = ($vocabulary->required) ? t('- Please choose -') : t('- None selected -');
  }
  else {
    $blank = ($vocabulary->required) ? 0 : t('- None -');
  }
merlinofchaos’s picture

Oh, this is actually a duplicate of a known bug. There's a patch that fixes it. I forget the issue #; it has not been committed because it's not the correct fix in my eyes, but that patch is there for people to apply as a workaround.

michelle’s picture

Status: Fixed » Closed (duplicate)