Commit 37378bbd authored by Roque's avatar Roque

erp5_hal_json_style: only incude raw fields in form definition for appcache requests

parent 35f2c8c1
......@@ -1555,7 +1555,7 @@ def calculateHateoas(is_portal=None, is_site_root=None, traversed_document=None,
fields_raw_properties = {}
# check if it's the first call to calculateHateoas so nothing was rendered yet
if REQUEST != None and response != None:
if appcache and REQUEST != None and response != None:
for group in traversed_document.Form_getGroupTitleAndId():
if 'hidden' in group['gid']:
for field in traversed_document.get_fields_in_group(group['goid']):
......
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