fix reducing groups with ordered elements
authorSurkov Sergey <surkovsv93@gmail.com>
Thu, 18 May 2017 18:00:56 +0300
changeset 1683 57b4ac796dcb
parent 1682 496029f768d9
child 1684 1447424a7029
fix reducing groups with ordered elements
xmlclass/xsdschema.py
--- a/xmlclass/xsdschema.py	Wed May 03 11:03:44 2017 +0300
+++ b/xmlclass/xsdschema.py	Thu May 18 18:00:56 2017 +0300
@@ -860,7 +860,7 @@
         if element["type"] == CHOICE:
             group["choices"] = element["choices"]
         else:
-            group.update({"elements": element["elements"], "order": group["order"]})
+            group.update({"elements": element["elements"], "order": element["order"]})
         group.update(attributes)
         return group