Commit d2b7c947 authored by Romain Courteaud's avatar Romain Courteaud

getWebSectionValueList should only return visible websection.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26175 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 373b0a93
......@@ -205,7 +205,11 @@ class WebSite(WebSection):
to find which sections apply.
"""
def getWebSectionUidList(section):
result = [section.getUid()]
# Only return visible web section
if section.isVisible():
result = [section.getUid()]
else:
result = []
for o in section.contentValues(portal_type='Web Section'):
result.extend(getWebSectionUidList(o))
return result
......
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