diff --git a/plugins/views_data_export_plugin_style_export.inc b/plugins/views_data_export_plugin_style_export.inc index 3e6227b..8782f4c 100644 --- a/plugins/views_data_export_plugin_style_export.inc +++ b/plugins/views_data_export_plugin_style_export.inc @@ -343,10 +343,14 @@ class views_data_export_plugin_style_export extends views_plugin_style { $identifier = $handler->options['expose']['identifier']; $option = $view->exposed_input[$identifier]; // The option may be a string or an array, depending on whether the - // widget is a text box/area or a select box. - if (is_array($option)) { - $option = implode('--', $option); + // widget is a text box/area or a select box. Use recursion since it's + // possible $option is a multi-dimensional array. + $iterator = new RecursiveIteratorIterator(new RecursiveArrayIterator($option)); + $values = array(); + foreach ($iterator as $value) { + $values[] = $value; } + $option = implode('--', $values); $exposed[] = check_plain($identifier) . '_' . check_plain($option); } }