make sure there is a val to be set for existing filters (#5257)

This commit is contained in:
Hugh A. Miles II 2018-06-21 22:00:50 -07:00 committed by Maxime Beauchemin
parent e1618ddddb
commit d4672dbfb7
1 changed files with 1 additions and 1 deletions

View File

@ -737,7 +737,7 @@ def merge_extra_filters(form_data):
return f['col'] + '__' + f['op']
existing_filters = {}
for existing in form_data['filters']:
if existing['col'] is not None:
if existing['col'] is not None and existing['val'] is not None:
existing_filters[get_filter_key(existing)] = existing['val']
for filtr in form_data['extra_filters']:
# Pull out time filters/options and merge into form data