Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Laurent S
erp5
Commits
2f9dc41e
Commit
2f9dc41e
authored
Aug 26, 2014
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix a bug in WebSection_getSiteMapTree for include_site_default_page case.
parent
d7157f12
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_getSiteMapTree.xml
...eItem/portal_skins/erp5_web/WebSection_getSiteMapTree.xml
+2
-1
bt5/erp5_web/bt/revision
bt5/erp5_web/bt/revision
+1
-1
No files found.
bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_getSiteMapTree.xml
View file @
2f9dc41e
...
...
@@ -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
...
...
bt5/erp5_web/bt/revision
View file @
2f9dc41e
111
7
111
8
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment