diff --git a/plugins/views_data_export_plugin_style_export.inc b/plugins/views_data_export_plugin_style_export.inc index 3675941..bd47072 100644 --- a/plugins/views_data_export_plugin_style_export.inc +++ b/plugins/views_data_export_plugin_style_export.inc @@ -324,12 +324,21 @@ class views_data_export_plugin_style_export extends views_plugin_style { if (!empty($view->exposed_input[$handler->options['expose']['identifier']])) { $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. + // The option may be a string, an array of strings, or an array of + // arrays of strings, depending on whether the widget is a text + // box/area, a select box, or a date range. if (is_array($option)) { - $option = implode('--', $option); + foreach ($option as $key => &$data) { + if (is_array($data)) { + $data = $key . '-' . implode('-', $data); + } + } + $filter_data = implode('--', $option); } - $exposed[] = check_plain($identifier) . '_' . check_plain($option); + else { + $filter_data = (string) $option; + } + $exposed[] = check_plain($identifier . '_' . $filter_data); } } if (!empty($exposed)) {