I have updated the filter handler for CCK options list that use widgets. Changes include:

  1. Extend views_handler_filter_many_to_one
    • This is what views uses for option widgets
    • It builds the forms for us
    • It provides more filter options
  2. Now support multi-select option list
  3. Filter options now include
    • Is one of - IS operator for single select, OR operator for multi select.
    • Is all of - IS operator for single select, AND operator for multi select.
    • Is None of - NOT operator for single and multi select.
  4. Fixes bug where value is sometimes a string and other times an array
  5. Fixes bug where values with spaces return no results

This patch requires the patch from #1318234: Subquery filters not added properly to main query so that OR based sub query filters work properly.

To test :

  1. Create a Text based CCK option list using select, radio, or checkbox
  2. Create a solr view with an exposed filter using the CCK option list field
  3. Have fun making precise search pages quickly and easily

Comments

tinker’s picture