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

Issue #2203421 by stella: Ignore chart add-ons that don't produce results.

parent 47e6f475
No related branches found
No related tags found
No related merge requests found
......@@ -265,6 +265,12 @@ class charts_plugin_style_chart extends views_plugin_style {
// Execute the subview and get the result.
$subview->pre_execute();
$subview->execute();
// If there's no results, don't attach the subview.
if (empty($subview->result)) {
continue;
}
$subchart = $subview->style_plugin->render($subview->result);
$subview->post_execute();
unset($subview);
......
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