From d2a57ea12334f0de0122a3aac72c4bc9ad66c3e8 Mon Sep 17 00:00:00 2001
From: Nathan Haug <nate@quicksketch.org>
Date: Mon, 29 Jul 2013 12:47:51 -0700
Subject: [PATCH] Do not included deleted displays in previews of parent
 charts.

---
 views/charts_plugin_style_chart.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/views/charts_plugin_style_chart.inc b/views/charts_plugin_style_chart.inc
index 044bd91..172ebf7 100644
--- a/views/charts_plugin_style_chart.inc
+++ b/views/charts_plugin_style_chart.inc
@@ -305,7 +305,7 @@ 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']) {
+      if ($display->display_plugin === 'chart' && $display->display_options['parent_display'] && empty($display->deleted)) {
         $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];
-- 
GitLab