File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -179,12 +179,18 @@ class flot_views_plugin_style extends views_plugin_style {
179
179
// Otherwise, check that the view exists.
180
180
else if ($ view = views_get_view ($ view_name )) {
181
181
$ 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
+
182
188
$ view ->execute ();
183
189
$ view ->init_style ();
184
190
$ layer = $ this ->build_layer ($ view , $ view ->result , $ view ->get_title ());
185
191
}
186
192
187
- if ($ layer ) {
193
+ if ($ layer && ! empty ( $ layer [ ' series ' ]-> data ) ) {
188
194
// Merging series and titles is simple.
189
195
$ merged ['series ' ][] = $ layer ['series ' ];
190
196
$ merged ['titles ' ][] = $ layer ['title ' ];
You can’t perform that action at this time.
0 commit comments