Closed (works as designed)
Project:
Views (for Drupal 7)
Version:
7.x-3.5
Component:
exposed filters
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Dec 2011 at 16:37 UTC
Updated:
11 Aug 2017 at 14:41 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
OldAccount commentedForgot to attach screenshot.
Comment #2
matslats commentedI have a similar complaint.
I'm not using aggregation.
And I'm not attaching to a block.
Comment #3
dawehnerIt would be certainly help a lot if you could provide a view which can be imported on a normal drupal installation.
So people can reproduce the bug and work on a fix, rather than trying to reproduce the bug for many minutes.
Comment #4
matslats commentedsorry my view is using all custom handlers so it would be hard for you to set up.
Comment #5
dawehnerSo you even have custom filter handlers?
Maybe the problem is there.
Maybe you could build a similar kind of setup without your custom handlers.
Comment #6
matslats commentedOk Here you go:
Import the view. Go to master display. The attachment overrides nothing but has (inherit exposed filters = TRUE)
On the exposed filter switch between node->published = TRUE and FALSE
The attachment display is the same in each case.
$view = new view;
$view->name = 'test';
$view->description = 'to test exposed filter inheritance';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'test';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['title'] = 'test';
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['query']['options']['query_comment'] = FALSE;
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'none';
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['row_plugin'] = 'fields';
/* Field: Content: 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']['label'] = '';
$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']['word_boundary'] = 0;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = 0;
$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']['hide_empty'] = 0;
$handler->display->display_options['fields']['title']['empty_zero'] = 0;
$handler->display->display_options['fields']['title']['link_to_node'] = 1;
/* Filter criterion: Content: Published */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'node';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = '1';
$handler->display->display_options['filters']['status']['group'] = 0;
$handler->display->display_options['filters']['status']['exposed'] = TRUE;
$handler->display->display_options['filters']['status']['expose']['operator_id'] = '';
$handler->display->display_options['filters']['status']['expose']['label'] = 'Published';
$handler->display->display_options['filters']['status']['expose']['use_operator'] = FALSE;
$handler->display->display_options['filters']['status']['expose']['operator'] = 'status_op';
$handler->display->display_options['filters']['status']['expose']['identifier'] = 'status';
$handler->display->display_options['filters']['status']['expose']['required'] = 1;
$handler->display->display_options['filters']['status']['expose']['multiple'] = FALSE;
/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page');
$handler->display->display_options['path'] = 'test';
/* Display: Attachment */
$handler = $view->new_display('attachment', 'Attachment', 'attachment_1');
$handler->display->display_options['pager']['type'] = 'some';
$handler->display->display_options['displays'] = array(
'default' => 'default',
'page' => 0,
);
$handler->display->display_options['attachment_position'] = 'after';
$handler->display->display_options['inherit_arguments'] = 0;
$handler->display->display_options['inherit_exposed_filters'] = 1;
Comment #7
esmerel commentedComment #8
videographics commentedI'm seeing the exact same thing from a page with an attachment. The aggregation in the attachment is ignoring the page's filters.
I've attached a screenshot and the view...
Comment #9
brephraim commentedI can confirm this is still an active issue.
Comment #10
bisonbleu commentedBummer, this is still an issue in 7.x-3.16! Bumping to major. Can someone suggest what might the problem be and/or a solution/workaround?
Comment #11
bisonbleu commentedAHA! It's not exactly intuitive but for the inheritance to work, the attachment display(s) must have the exact same exposed filters as the parent display. Another way to think about it: how can the attachment display inherit the value of an exposed filter if it doesn't itself have the very same exposed filter to pass the inherited value to? Doh!