I cant select first item from categories
| Project: | Views |
| Version: | 5.x-1.6 |
| Component: | Views Data |
| Category: | support request |
| Priority: | normal |
| Assigned: | sentinelcz |
| Status: | duplicate |
Jump to:
Hi everybody,
I have strange problem.
I created vocabulary in categories with 4 terms.
In views I created filter.
I see and I could select in filter ( vocabulary - "Stav") only 3 items (terms).
I check again that I have in vocabulary - "Stav" 4 terms.
I discover that is missing principle always first item.
Have somebody the same problem as I ?
Thank you.
In attachment:
filter.jpg - I see filter - there are only 3 items.
list_of_terms.jpg - there are 4 correct items.
$view = new stdClass();
$view->name = 'strucny_vypis';
$view->description = 'Strucny vypis';
$view->access = array (
0 => '2',
1 => '3',
);
$view->view_args_php = '';
$view->page = TRUE;
$view->page_title = 'Stručny výpis';
$view->page_header = '';
$view->page_header_format = '1';
$view->page_footer = '';
$view->page_footer_format = '1';
$view->page_empty = '';
$view->page_empty_format = '1';
$view->page_type = 'teaser';
$view->url = 'strucny-vypis';
$view->use_pager = TRUE;
$view->nodes_per_page = '10';
$view->menu = TRUE;
$view->menu_title = 'Vypis reportu';
$view->menu_tab = FALSE;
$view->menu_tab_weight = '-1';
$view->menu_tab_default = FALSE;
$view->menu_tab_default_parent = NULL;
$view->menu_tab_default_parent_type = 'tab';
$view->menu_parent_tab_weight = '0';
$view->menu_parent_title = '';
$view->sort = array (
);
$view->argument = array (
);
$view->field = array (
array (
'tablename' => 'term_node_6',
'field' => 'name',
'label' => '',
'options' => 'link',
),
array (
'tablename' => 'term_node_1',
'field' => 'name',
'label' => '',
'options' => 'link',
),
array (
'tablename' => 'term_node_2',
'field' => 'name',
'label' => '',
'options' => 'link',
),
array (
'tablename' => 'term_node_7',
'field' => 'name',
'label' => '',
'options' => 'link',
),
);
$view->filter = array (
array (
'tablename' => 'term_node_6',
'field' => 'tid',
'operator' => 'AND',
'options' => '',
'value' => array (
),
),
array (
'tablename' => 'term_node_1',
'field' => 'tid',
'operator' => 'AND',
'options' => '',
'value' => array (
),
),
array (
'tablename' => 'term_node_2',
'field' => 'tid',
'operator' => 'AND',
'options' => '',
'value' => array (
),
),
array (
'tablename' => 'term_node_7',
'field' => 'tid',
'operator' => 'AND',
'options' => '',
'value' => array (
),
),
);
$view->exposed_filter = array (
array (
'tablename' => 'term_node_6',
'field' => 'tid',
'label' => 'Program',
'optional' => '1',
'is_default' => '0',
'operator' => '1',
'single' => '1',
),
array (
'tablename' => 'term_node_1',
'field' => 'tid',
'label' => 'Typ reportu',
'optional' => '1',
'is_default' => '0',
'operator' => '1',
'single' => '1',
),
array (
'tablename' => 'term_node_2',
'field' => 'tid',
'label' => 'Jazyk',
'optional' => '1',
'is_default' => '0',
'operator' => '1',
'single' => '1',
),
array (
'tablename' => 'term_node_7',
'field' => 'tid',
'label' => 'Stav',
'optional' => '1',
'is_default' => '0',
'operator' => '1',
'single' => '1',
),
);
$view->requires = array(term_node_6, term_node_1, term_node_2, term_node_7);
$views[$view->name] = $view;
| Attachment | Size |
|---|---|
| filter.jpg | 9.35 KB |
| list_of_terms.jpg | 22.43 KB |
| parameters_of_vocabulary.jpg | 37.4 KB |

#1
is it related to this?
http://drupal.org/node/180109
#2
And I read it and I don't think so. (If I understood well)
(I update last version of core module, which solve described problem in http://drupal.org/node/180109 ), problem still takes.
In "my" filter is missing the first category.
And in "my" problem doesn't matter if is category mandatory or not.
Have you the same problem ?
#3
Temporary I solved problem .
If I set category as mandatory, automatically occurs in filter.
If I set it back to "non mandatory", first terms in category was hidden.
#4
Hi,
I have the same problem. Is there already a solution?
For me setting the categories to mandatory is not possible.
Somebody with a solution?
Searching further I found another thread about this issue.
Is this: http://drupal.org/node/199675#comment-658270 the right solution?
greetings,
Martijn
#5
http://drupal.org/node/199675
marking as duplicate.