Commit 3789a702 authored by Fabien Morin's avatar Fabien Morin

fix a mistake : in case of include_site_default_page, insert a page only one...

fix a mistake : in case of include_site_default_page, insert a page only one time (at the level 1) not on each section.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34329 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c89df96c
......@@ -138,7 +138,7 @@ def getSiteMapItemTree(section, depth=0, level=None): \n
\'subsection\' : subsection_result,\n
})\n
\n
if section.isSiteMapSectionParent() and include_site_default_page:\n
if section.isSiteMapSectionParent() and level == 1 and include_site_default_page:\n
result.insert(0, {\'url\': context.getWebSiteValue().absolute_url(), \'level\': level, \'section\': None, \'document\': section.getDefaultDocumentValue(), \'subsection\': None})\n
if property_mapping:\n
return map(mapObject, result)\n
......
922
\ No newline at end of file
925
\ No newline at end of file
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