I've created a content type with a checkbox (boolea field type), leaving the default values as 0 and 1 for off and on.

I then created a view, filtering on the checkbox.

In the "Configure filter criterion" popup, there are no options visible except for select all.
The options 0 and 1 are there and clickable, but since in the field settings no on/off values were set, the options have no visible content:
invisible options

<select multiple="multiple" name="options[value][]" id="edit-options-value" size="3" class="form-select">
  <option value="all" selected="selected">Select all</option>
  <option value="0"></option>
  <option value="1"></option>
</select>

Besides this UI Bug, there's another one: selecting select all will result in an error:

No valid values found on filter: Content: test_bool.

CommentFileSizeAuthor
#1 invisible-options-for-bool-field.jpg44.36 KBsirtet
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sirtet’s picture

Title: Filter on boolean doesn't respect default values » Filter options on boolean fields don't show default values
Version: 7.x-3.5 » 7.x-3.7
Issue summary: View changes
Priority: Minor » Normal
FileSize
44.36 KB

Updated summary and metadata.