Skip to content
Snippets Groups Projects
Commit 585ecc91 authored by Nathan Haug's avatar Nathan Haug
Browse files

Issue #2203369 by stella: Disabled chart add-on displays still attempted to be attached.

parent 31a47799
No related branches found
No related tags found
No related merge requests found
......@@ -326,7 +326,8 @@ class charts_plugin_style_chart extends views_plugin_style {
function get_children_chart_displays() {
$children_displays = array();
foreach ($this->view->display as $display_name => $display) {
if ($display->display_plugin === 'chart' && $display->display_options['parent_display'] && empty($display->deleted)) {
$display_enabled = $this->view->display[$display_name]->handler->get_option('enabled');
if ($display->display_plugin === 'chart' && $display->display_options['parent_display'] && empty($display->deleted) && $display_enabled) {
$parent_display_name = $display->display_options['parent_display'];
if ($parent_display_name === $this->view->current_display) {
$children_displays[$display_name] = $this->view->display[$display_name];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment