I set Filters:
2 x Taxonomy Terms: (first exposed, second not exposed)

Problem is that I cant delete "Taxonomy: Term = Test"

Filters
Node: Published False
Settings
Taxonomy: Term exposed
Settings
Taxonomy: Term = Test

$view = new view;
$view->name = 'xxx';
$view->description = 'xxx';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('fields', array(
  'title' => array(
    'label' => 'Go to',
    'link_to_node' => 1,
    'exclude' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'none',
  ),
  'tid' => array(
    'label' => 'All terms',
    'type' => 'separator',
    'separator' => ', ',
    'empty' => '',
    'link_to_taxonomy' => 1,
    'limit' => 0,
    'vids' => array(
      '2' => 0,
      '1' => 0,
      '5' => 0,
      '3' => 0,
      '4' => 0,
    ),
    'exclude' => 0,
    'id' => 'tid',
    'table' => 'term_node',
    'field' => 'tid',
    'relationship' => 'none',
  ),
));
$handler->override_option('filters', array(
  'status' => array(
    'id' => 'status',
    'table' => 'node',
    'field' => 'status',
  ),
  'tid' => array(
    'operator' => 'or',
    'value' => array(),
    'group' => '0',
    'exposed' => TRUE,
    'expose' => array(
      'use_operator' => 0,
      'operator' => 'tid_op',
      'identifier' => 'tid',
      'label' => 'Select Location',
      'optional' => 1,
      'single' => 1,
      'remember' => 0,
      'reduce' => 0,
    ),
    'type' => 'select',
    'vid' => '2',
    'id' => 'tid',
    'table' => 'term_node',
    'field' => 'tid',
    'hierarchy' => 0,
    'relationship' => 'none',
    'reduce_duplicates' => 0,
  ),
  'tid_1' => array(
    'operator' => 'or',
    'value' => array(
      '15' => '15',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'type' => 'select',
    'vid' => '5',
    'id' => 'tid_1',
    'table' => 'term_node',
    'field' => 'tid',
    'hierarchy' => 1,
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
    'reduce_duplicates' => 0,
  ),
));
$handler->override_option('access', array(
  'type' => 'perm',
  'perm' => 'access content',
));
$handler->override_option('use_more', 1);
$handler->override_option('style_plugin', 'table');
$handler->override_option('style_options', array(
  'grouping' => '',
  'override' => 1,
  'sticky' => 0,
  'order' => 'asc',
  'columns' => array(
    'title' => 'title',
    'tid' => 'tid',
  ),
  'info' => array(
    'title' => array(
      'sortable' => 0,
      'separator' => '',
    ),
    'tid' => array(
      'separator' => '',
    ),
  ),
  'default' => '-1',
));
$handler->override_option('row_options', array(
  'inline' => array(
    'title' => 'title',
    'tid' => 'tid',
  ),
  'separator' => '',
));
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->override_option('path', 'xxx');
$handler->override_option('menu', array(
  'type' => 'none',
  'title' => '',
  'weight' => 0,
));
$handler->override_option('tab_options', array(
  'type' => 'none',
  'title' => '',
  'weight' => 0,
));

Comments

sentinelcz’s picture

Priority: Critical » Minor

I solved problem.
It is not possible delete if you press "settings icon".
You have to click at name "Taxonomy: Term = Test" and after that you can delete it.
Perhaps this can helps to somebody.

merlinofchaos’s picture

You're missing an important piece of information. Why can't you delete it? Is the remove button not there? Does the remove button not work? If it doesn't work, how? Do aliens come to your keyboard and prevent you from clicking the remove button by threatening you with your life? (Yes, it's ridiculous, I just have an active imagination and that's dangerous when you don't give enough info =)

sentinelcz’s picture

Keep cold your imagination man :-)
I have right ice for you.
I see two items:
"Name "Taxonomy: Term = Test" and beside is icon with "label settings".
If I press at first one, label, directly to Taxonomy: Term = Test, I see button delete and the button delete it is working.
If I press at icon with label "settings" (second item), I see the same (delete button) - there is delete button too but not working.
I press delete button but everything is without change.

sentinelcz’s picture

Of course, thank you for your work, I will try to write next more detailed.
I will spend more time testing, because I had last time little time press.

merlinofchaos’s picture

Title: Problem is that I cant delete "Taxonomy: Term = Test" » Filters with settings have delete button on settings form, but button does not do anything

Ahh, that's very interesting. Ok, so the real issue here is that if a filter has a 'settings' icon next to it, a delete button appears on the settings but does not actually delete the filter. Is that correct?

sentinelcz’s picture

Yes, exactly, as you wrote.
------------------------------------------------------------
This link is working (click and press delete button ):
/admin/build/views/nojs/config-item/Test/default/filter/tid
-------------------------------------------------------------
And this link in not working (click and press delete button )
/admin/build/views/nojs/config-item-extra/Test/default/filter/tid

merlinofchaos’s picture

Status: Active » Fixed

This form doesn't need that Remove button, so I removed it in CVS. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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