瀏覽代碼

HUE-7766 [dashboard] Do not error when using a timeline and rolling window

Romain Rigaux 8 年之前
父節點
當前提交
fffd242
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      desktop/libs/libsolr/src/libsolr/api.py

+ 1 - 0
desktop/libs/libsolr/src/libsolr/api.py

@@ -288,6 +288,7 @@ class SolrApi(object):
 
         # Only on dim 1 currently
         if timeFilter and timeFilter['time_field'] == facet['field'] and (widget['id'] not in timeFilter['time_filter_overrides']): # or facet['widgetType'] != 'bucket-widget'):
+          facet['widgetType'] = widget['widgetType']
           _f[f_name].update(self._get_time_filter_query(timeFilter, facet))
 
       if widget['widgetType'] == 'tree2-widget' and facets[-1]['aggregate']['function'] != 'count':