# HG changeset patch
# User Jérémie Gavrel <jeremie.gavrel@xcg-consulting.fr>
# Date 1422026732 -3600
#      Fri Jan 23 16:25:32 2015 +0100
# Node ID d3ff3a95e41bfbbc509ce8128bd914b952255493
# Parent  781445e6c69ac9a5bf10337d3f642b6d1750e80d
Corrected a possible issue if analytic_dimensions has no 'modifiers' attribute

diff --git a/analytic_structure.py b/analytic_structure.py
--- a/analytic_structure.py
+++ b/analytic_structure.py
@@ -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