I open a new feature request in regards to the "Required" option wich is mandatory now.
If you uncheck "Required" in the exposed filter's configuration, in views, the following error message appears and the view is broken:

An illegal choice has been detected. Please contact the site administrator.
Notice: Undefined index: nid in views_handler_field_term_node_tid->pre_render() (line 83 of /sites/all/modules/views/modules/taxonomy/views_handler_field_term_node_tid.inc).

With exposed filters one could expect to ignore a criteria in the search, that's why the Any option is interesting.

Comments

neoglez’s picture

Category: feature » bug
Status: Active » Postponed (maintainer needs more info)

I really don't know, i never had this issue ('required' being mandatory), but i suposse where it's comming from. Actually it happened to me the other way around, see #10 in #1170644: Views Hacks Views Filter Selective Drupal 7 branch, also views has a similar #1177882: Exposed filters fire "An illegal choice has been detected. Please contact the site administrator." error (still active), but i don't think it's the same like this one.
Would you please check if you still have it with the latest dev?

Jerome F’s picture

Now it's better with last git, you can actually uncheck the required option in the exposed filter. And there's an Any option in the select list when the view is displayed for the first time or refreshed. If you select one* or several terms in the selective exposed filters, the Any option is not available anymore, and the illegal choice warning is displayed. (see attached screenshots)

So in other words this issue is only for multiple selective exposed filters, where the Any option is needed. Let's assume you don't care for one or more of the given criterions, but you still want to filter the view's results with the other available criterions, then you need the any option. If you leave any in one selective exposed filter for the moment you run in the error message in #0

* I tested with and without autosubmit to try to select 2 terms out of 4 at once
I also tested with one selective exposed filter only, but once again, after the first selection, you can't go back to the - any - option, wich is not a problem in this particular case because all you need to do is refresh the page or reset the filters.

drupive’s picture

I have exactly the same problem as described with the latest dev.
the view doesn't know to handle "all" where it expects a vid.

2 dropdownmenu's with term's
the second is set to "Limit "Content: term 2" values to result set "
required is off
is shown in both the first and the second dropdown
after re-selecting in the first, it's not showing in the second.
I get the same errors

vlad.dancer’s picture

Thanks for this awesome module! I propose to add hook_views_filters_selective_handler_info for allowing other module to alter handler callbacks. It will be good approach in case when we have - Any - option in filter options. We'll needed only to define own alter hook mymodule_views_filters_selective_handler_info_alter() and replace reduce function y own! Another example is when you have filters with relationships.

views_filters_selective.module
-function views_filters_selective_views_filters_selective_handler() {
+function views_filters_selective_views_filters_selective_handler_info() {
views_filters_selective_exposed_form_plugin.inc
-      $handlers = module_invoke_all('views_filters_selective_handler');
+      $handlers = module_invoke_all('views_filters_selective_handler_info');
+      drupal_alter('views_filters_selective_handler_info', $handlers);
infojunkie’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

This module has been deprecated in favour of https://drupal.org/project/views_selective_filters. Please test there and reopen if necessary.