Commit f4cdb040 authored by Jérome Perrin's avatar Jérome Perrin

Sort web sections alphabetically, if they do not have an int_index

parent f24bd2a2
......@@ -122,7 +122,7 @@ def getSiteMapItemTree(section, depth=0, level=None): \n
})\n
if include_subsection or (include_subsection is None and section.isSiteMapSectionParent()):\n
for subsection in section.contentValues(portal_type=\'Web Section\',\n
sort_on=\'int_index\',\n
sort_on=(\'int_index\', \'translated_title\')\n
checked_permission=\'View\'):\n
if subsection.isVisible():\n
subsection_result = getSiteMapItemTree(subsection, depth=depth - 1, level=level + 1)\n
......
1107
\ No newline at end of file
1108
\ 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