Skip to content

Commit 9272e61

Browse files
author
young hahn
committed
Fix for multilayer graph handling.
1 parent 529e2d3 commit 9272e61

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

views/flot_views_plugin_style.inc

+7-1
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,18 @@ class flot_views_plugin_style extends views_plugin_style {
179179
// Otherwise, check that the view exists.
180180
else if ($view = views_get_view($view_name)) {
181181
$view->set_display($display_name);
182+
183+
// If this display inherits arguments, pass the parent view's args.
184+
if ($view->display_handler->get_option('inherit_arguments')) {
185+
$view->set_arguments($this->view->args);
186+
}
187+
182188
$view->execute();
183189
$view->init_style();
184190
$layer = $this->build_layer($view, $view->result, $view->get_title());
185191
}
186192

187-
if ($layer) {
193+
if ($layer && !empty($layer['series']->data)) {
188194
// Merging series and titles is simple.
189195
$merged['series'][] = $layer['series'];
190196
$merged['titles'][] = $layer['title'];

0 commit comments

Comments
 (0)