Commit 41156e9a authored by Romain Courteaud's avatar Romain Courteaud

erp5_hal_json_style: export DateTime in gadget field extra parameter

parent e8311347
Pipeline #32430 failed with stage
in 0 seconds
...@@ -702,7 +702,7 @@ def renderField(traversed_document, field, form, value=MARKER, meta_type=None, ...@@ -702,7 +702,7 @@ def renderField(traversed_document, field, form, value=MARKER, meta_type=None,
"sandbox": field.get_value("js_sandbox") "sandbox": field.get_value("js_sandbox")
}) })
try: try:
result["renderjs_extra"] = json.dumps(dict(field.get_value("renderjs_extra"))) result["renderjs_extra"] = json.dumps(toBasicTypes(dict(field.get_value("renderjs_extra"))))
except KeyError: except KeyError:
# Ensure compatibility if the products are not yet up to date # Ensure compatibility if the products are not yet up to date
result["renderjs_extra"] = json.dumps({}) result["renderjs_extra"] = json.dumps({})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment