Hi,
I have a view with 2 exposed filters, in a composite configuration:
- The first one has a Selective option ("Limit values to result set"),
- The second one is a Sort filter. When I choose "Radio buttons" as a display, it is simply ignored and displays a select list.

This happens only in this configuration, when the first exposed filter is "selective". Any idea where it could come from?

Comments

infojunkie’s picture

What's a sort filter?

fourmi4x’s picture

I meant that the second exposed form is an exposed sort criteria, sorry.

The problem happens when choosing "Radio buttons" in "Display exposed sort options as: ".

infojunkie’s picture

Sorry, I'm not able to recreate your configuration. Can you please attach a view export that illustrates the bug? Please try to avoid CCK fields and contrib modules.

fourmi4x’s picture

Hi, sorry for my first explanations, I realized I missed something important: I try to put radio duttons on the sort filters through the Better Exposed Filters module (6.x-1.x-dev).

Also, I'm using views 6.x-3.x-dev.

I've created the simplest view I could to illustrate the problem: when selecting "Radio buttons", the sort remains a select list, even if I don't change any configuration on the other (selective + BEF) exposed filter.

Here is a screenshot of the view configuration: (not very good :( )
http://www.flickr.com/photos/21056114@N07/6278966921/in/photostream/

Here is the export:

$view = new view;
$view->name = 'temp_bug_selective';
$view->description = 'Temp bug selective';
$view->tag = 'test';
$view->base_table = 'node';
$view->human_name = 'Temp bug selective';
$view->core = 6;
$view->api_version = '3.0-alpha1';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

/* Display: Defaults */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->display->display_options['access']['type'] = 'none';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'composite';
$handler->display->display_options['exposed_form']['options']['plugins'] = array(
  'better_exposed_filters' => 'better_exposed_filters',
  'views_filters_selective' => 'views_filters_selective',
);
$handler->display->display_options['exposed_form']['options']['better_exposed_filters'] = array(
  'bef' => array(
    'sort' => array(
      'bef_format' => 'bef',
      'combine' => 0,
      'reset' => 0,
      'reset_label' => '',
    ),
    'field_rev_cat_value' => array(
      'bef_format' => 'default',
      'more_options' => array(
        'bef_select_all_none' => 0,
        'bef_collapsible' => 0,
        'bef_filter_description' => '',
      ),
    ),
  ),
);
$handler->display->display_options['exposed_form']['options']['views_filters_selective'] = array(
  'vfs' => array(
    'field_rev_cat_value' => array(
      'vfs_selective' => 0,
      'vfs_active' => 0,
      'vfs_field' => '0',
      'vfs_hide_empty' => 0,
    ),
  ),
);
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['row_plugin'] = 'fields';
/* Field: Node: Title */
$handler->display->display_options['fields']['title']['id'] = 'title';
$handler->display->display_options['fields']['title']['table'] = 'node';
$handler->display->display_options['fields']['title']['field'] = 'title';
$handler->display->display_options['fields']['title']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['title']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['title']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['title']['alter']['external'] = 0;
$handler->display->display_options['fields']['title']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['title']['alter']['trim'] = 0;
$handler->display->display_options['fields']['title']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['title']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['title']['alter']['html'] = 0;
$handler->display->display_options['fields']['title']['element_label_colon'] = 1;
$handler->display->display_options['fields']['title']['element_default_classes'] = 1;
$handler->display->display_options['fields']['title']['hide_empty'] = 0;
$handler->display->display_options['fields']['title']['empty_zero'] = 0;
$handler->display->display_options['fields']['title']['link_to_node'] = 0;
/* Sort criterion: Node: Post date */
$handler->display->display_options['sorts']['created']['id'] = 'created';
$handler->display->display_options['sorts']['created']['table'] = 'node';
$handler->display->display_options['sorts']['created']['field'] = 'created';
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
$handler->display->display_options['sorts']['created']['exposed'] = TRUE;
$handler->display->display_options['sorts']['created']['expose']['label'] = 'Node: Post date';
/* Filter: Content: Category (field_rev_cat) */
$handler->display->display_options['filters']['field_rev_cat_value']['id'] = 'field_rev_cat_value';
$handler->display->display_options['filters']['field_rev_cat_value']['table'] = 'node_data_field_rev_cat';
$handler->display->display_options['filters']['field_rev_cat_value']['field'] = 'field_rev_cat_value';
$handler->display->display_options['filters']['field_rev_cat_value']['exposed'] = TRUE;
$handler->display->display_options['filters']['field_rev_cat_value']['expose']['operator'] = 'field_rev_cat_value_op';
$handler->display->display_options['filters']['field_rev_cat_value']['expose']['limit_operators'] = array();
$handler->display->display_options['filters']['field_rev_cat_value']['expose']['label'] = 'Content: Category (field_rev_cat)';
$handler->display->display_options['filters']['field_rev_cat_value']['expose']['identifier'] = 'field_rev_cat_value';
$handler->display->display_options['filters']['field_rev_cat_value']['expose']['single'] = 0;
$handler->display->display_options['filters']['field_rev_cat_value']['expose']['reduce'] = 0;
$handler->display->display_options['filters']['field_rev_cat_value']['reduce_duplicates'] = 0;
$translatables['temp_bug_selective'] = array(
  t('Defaults'),
  t('more'),
  t('Apply'),
  t('Reset'),
  t('Sort by'),
  t('Asc'),
  t('Desc'),
  t('Items per page'),
  t('- All -'),
  t('Offset'),
  t('Title'),
  t('Node: Post date'),
  t('Content: Category (field_rev_cat)'),
);

Thanks again for your help!

MasterChief’s picture

I have the same problem but with autosubmit too, i am using BEF too, i think something goes wrong, you made a patch 2 months ago which fix the problem so i didn't post a message about it until now but the problem appears again.

An idea infojunkie ?

MasterChief’s picture

I made tests, so the problem is only with radio buttons, selective exposed filters works but radios buttons are ignored to autosubmit option.

It's maybe a javascript problem ?

nathan573’s picture

Did anybody find a resolution or workaround to this? I've got a View with multiple exposed filters, some utilizing radio buttons, and these radio button based filters don't persist when using the pager, they just go back to the "All" default option.

Thanks

infojunkie’s picture

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

This module is no longer maintained for D6 and has been deprecated in favour of https://drupal.org/project/views_selective_filters for D7. Please test there and reopen if necessary.