Skip to content
Snippets Groups Projects
Commit d3ff3a95e41b authored by Jérémie Gavrel's avatar Jérémie Gavrel
Browse files

Corrected a possible issue if analytic_dimensions has no 'modifiers' attribute

parent 781445e6c69a
No related branches found
No related tags found
No related merge requests found
......@@ -310,7 +310,7 @@
# Now we can insert the fields in the view's architecture.
for field in elem_fields:
attrs = {'name': field}
modifiers = json.loads(elem.attrib.get('modifiers', {}))
modifiers = json.loads(elem.attrib.get('modifiers', '{}'))
attrs['modifiers'] = json.dumps({
attr: value for attr, value in modifiers.iteritems()
if attr != 'readonly' or
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment