There is a taxonomy term with a space in it "cre cra" for example.

Then i have setup a view like this, see view.txt. Basically it's just vbo with the taxonomy term as exposed autocomplete filter.
If you input a normal term everything works as expected. The exposed form uses ajax.

So if you input "cre cra" it seems to work as expected, see after_filter.png

But then if you submit the vbo form the value "cre cra" get's converted to "cre+cra" and doom.
Please ignore the notice, the first line is the problem

Views-3.x-dev

CommentFileSizeAuthor
#2 1325632.patch700 bytesdawehner
after_submit.png14.2 KBdawehner
after_filter.png19.68 KBdawehner
view.txt9.06 KBdawehner

Comments

dawehner’s picture

Title: Taxonomy Term with a space doesn't work after submitting the vbo action » Exposed filter input with a space doesn't work after submitting the vbo action

This works for a title field as well.


$view = new view;
$view->name = 'vbo';
$view->description = '';
$view->tag = '';
$view->base_table = 'node';
$view->human_name = '';
$view->core = 6;
$view->api_version = '3.0';
$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['use_ajax'] = TRUE;
$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'] = 'basic';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['style_plugin'] = 'bulk';
$handler->display->display_options['style_options']['columns'] = array(
  'nid' => 'nid',
  'title' => 'title',
);
$handler->display->display_options['style_options']['default'] = '-1';
$handler->display->display_options['style_options']['info'] = array(
  'nid' => array(
    'sortable' => 0,
    'default_sort_order' => 'asc',
    'align' => '',
    'separator' => '',
  ),
  'title' => array(
    'sortable' => 0,
    'default_sort_order' => 'asc',
    'align' => '',
    'separator' => '',
  ),
);
$handler->display->display_options['style_options']['override'] = 1;
$handler->display->display_options['style_options']['sticky'] = 0;
$handler->display->display_options['style_options']['empty_table'] = 0;
$handler->display->display_options['style_options']['operations'] = array(
  'node_assign_owner_action' => array(
    'selected' => 0,
    'skip_confirmation' => 0,
    'label' => '',
  ),
  'views_bulk_operations_delete_node_action' => array(
    'selected' => 0,
    'skip_confirmation' => 0,
    'label' => '',
  ),
  'node_mass_update-a27b9efabcd054685a549378b174ad11' => array(
    'selected' => 0,
    'skip_confirmation' => 0,
    'label' => '',
  ),
  'system_message_action' => array(
    'selected' => 0,
    'skip_confirmation' => 0,
    'label' => '',
  ),
  'views_bulk_operations_action' => array(
    'selected' => 0,
    'skip_confirmation' => 0,
    'label' => '',
  ),
  'views_bulk_operations_script_action' => array(
    'selected' => 0,
    'skip_confirmation' => 0,
    'label' => '',
  ),
  'node_make_sticky_action' => array(
    'selected' => 1,
    'skip_confirmation' => 1,
    'label' => '',
  ),
  'node_make_unsticky_action' => array(
    'selected' => 0,
    'skip_confirmation' => 0,
    'label' => '',
  ),
  'node_mass_update-c4d3b28efb86fd703619a50b74d43794' => array(
    'selected' => 0,
    'skip_confirmation' => 0,
    'label' => '',
  ),
  'views_bulk_operations_taxonomy_action' => array(
    'selected' => 0,
    'skip_confirmation' => 0,
    'label' => '',
  ),
  'views_bulk_operations_argument_selector_action' => array(
    'selected' => 0,
    'skip_confirmation' => 0,
    'label' => '',
  ),
  'node_promote_action' => array(
    'selected' => 0,
    'skip_confirmation' => 0,
    'label' => '',
  ),
  'node_mass_update-14de7d028b4bffdf2b4a266562ca18ac' => array(
    'selected' => 0,
    'skip_confirmation' => 0,
    'label' => '',
  ),
  'node_mass_update-9c585624b9b3af0b4687d5f97f35e047' => array(
    'selected' => 0,
    'skip_confirmation' => 0,
    'label' => '',
  ),
  'node_publish_action' => array(
    'selected' => 0,
    'skip_confirmation' => 0,
    'label' => '',
  ),
  'system_goto_action' => array(
    'selected' => 0,
    'skip_confirmation' => 0,
    'label' => '',
  ),
  'node_unpromote_action' => array(
    'selected' => 0,
    'skip_confirmation' => 0,
    'label' => '',
  ),
  'node_mass_update-8ce21b08bb8e773d10018b484fe4815e' => array(
    'selected' => 0,
    'skip_confirmation' => 0,
    'label' => '',
  ),
  'node_save_action' => array(
    'selected' => 0,
    'skip_confirmation' => 0,
    'label' => '',
  ),
  'system_send_email_action' => array(
    'selected' => 0,
    'skip_confirmation' => 0,
    'label' => '',
  ),
  'node_mass_update-0ccad85c1ebe4c9ceada1aa64293b080' => array(
    'selected' => 0,
    'skip_confirmation' => 0,
    'label' => '',
  ),
  'node_unpublish_action' => array(
    'selected' => 0,
    'skip_confirmation' => 0,
    'label' => '',
  ),
  'node_unpublish_by_keyword_action' => array(
    'selected' => 0,
    'skip_confirmation' => 0,
    'label' => '',
  ),
);
$handler->display->display_options['style_options']['execution_type'] = '1';
$handler->display->display_options['style_options']['display_type'] = '0';
$handler->display->display_options['style_options']['display_result'] = 1;
$handler->display->display_options['style_options']['merge_single_action'] = 1;
$handler->display->display_options['style_options']['hide_selector'] = 0;
$handler->display->display_options['style_options']['preserve_selection'] = 1;
/* Field: Node: Nid */
$handler->display->display_options['fields']['nid']['id'] = 'nid';
$handler->display->display_options['fields']['nid']['table'] = 'node';
$handler->display->display_options['fields']['nid']['field'] = 'nid';
$handler->display->display_options['fields']['nid']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['nid']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['nid']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['nid']['alter']['external'] = 0;
$handler->display->display_options['fields']['nid']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['nid']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['nid']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['nid']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['nid']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['nid']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['nid']['alter']['trim'] = 0;
$handler->display->display_options['fields']['nid']['alter']['html'] = 0;
$handler->display->display_options['fields']['nid']['element_label_colon'] = 1;
$handler->display->display_options['fields']['nid']['element_default_classes'] = 1;
$handler->display->display_options['fields']['nid']['hide_empty'] = 0;
$handler->display->display_options['fields']['nid']['empty_zero'] = 0;
$handler->display->display_options['fields']['nid']['hide_alter_empty'] = 0;
$handler->display->display_options['fields']['nid']['link_to_node'] = 0;
/* 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_whitespace'] = 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']['trim'] = 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']['hide_alter_empty'] = 0;
$handler->display->display_options['fields']['title']['link_to_node'] = 1;
/* Filter: Node: Title */
$handler->display->display_options['filters']['title']['id'] = 'title';
$handler->display->display_options['filters']['title']['table'] = 'node';
$handler->display->display_options['filters']['title']['field'] = 'title';
$handler->display->display_options['filters']['title']['operator'] = 'contains';
$handler->display->display_options['filters']['title']['exposed'] = TRUE;
$handler->display->display_options['filters']['title']['expose']['operator'] = 'title_op';
$handler->display->display_options['filters']['title']['expose']['limit_operators'] = array();
$handler->display->display_options['filters']['title']['expose']['label'] = 'Node: Title';
$handler->display->display_options['filters']['title']['expose']['identifier'] = 'title';
$handler->display->display_options['filters']['title']['expose']['optional'] = TRUE;
$handler->display->display_options['filters']['title']['expose']['single'] = TRUE;
$handler->display->display_options['filters']['title']['case'] = 1;

/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->display->display_options['path'] = 'page';
dawehner’s picture

Status: Active » Needs review
StatusFileSize
new700 bytes

Here is a patch which works fine for me, but i'm not sure whether this is the right place to decode the url.

Caseledde’s picture

Status: Needs review » Reviewed & tested by the community

Works fine for me.

dchampine’s picture

This patch also works for me.

infojunkie’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for the patch. Committed to the latest dev.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

This patch might cause a problem. I have a view that allows you to filter by title containing text. if you search for a title containing urlencoded values, the URL is no longer valid. I will open a bug ticket, just wanted to mention it here.