Commit 2f9dc41e authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix a bug in WebSection_getSiteMapTree for include_site_default_page case.

parent d7157f12
......@@ -136,7 +136,8 @@ def getSiteMapItemTree(section, depth=0, level=None): \n
})\n
\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
site = context.getWebSiteValue()\n
result.insert(0, {\'url\': site.absolute_url(), \'level\': level, \'section\': site, \'document\': section.getDefaultDocumentValue(), \'subsection\': None})\n
if property_mapping:\n
return map(mapObject, result)\n
return result\n
......
1117
1118
\ 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