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

Do not included deleted displays in previews of parent charts.

parent 7ea00503
No related branches found
No related tags found
No related merge requests found
...@@ -305,7 +305,7 @@ class charts_plugin_style_chart extends views_plugin_style { ...@@ -305,7 +305,7 @@ class charts_plugin_style_chart extends views_plugin_style {
function get_children_chart_displays() { function get_children_chart_displays() {
$children_displays = array(); $children_displays = array();
foreach ($this->view->display as $display_name => $display) { foreach ($this->view->display as $display_name => $display) {
if ($display->display_plugin === 'chart' && $display->display_options['parent_display']) { if ($display->display_plugin === 'chart' && $display->display_options['parent_display'] && empty($display->deleted)) {
$parent_display_name = $display->display_options['parent_display']; $parent_display_name = $display->display_options['parent_display'];
if ($parent_display_name === $this->view->current_display) { if ($parent_display_name === $this->view->current_display) {
$children_displays[$display_name] = $this->view->display[$display_name]; $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