Commit 2e7dfe93 authored by Romain Courteaud's avatar Romain Courteaud Committed by Xiaowu Zhang

erp5_web: keep section/document attribute

This allows called script to call script on them
parent f12fb01d
......@@ -46,6 +46,8 @@ def mapObject(property_dict):
result['url'] = property_dict['url']
result['level'] = property_dict['level']
result['subsection'] = property_dict['subsection']
result['section'] = property_dict.get('section', None)
result['document'] = property_dict.get('document', None)
return result
def getSiteMapItemTree(section, depth=0, level=None):
......
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