Commit a959b3d0 authored by Rafael Monnerat's avatar Rafael Monnerat

Added missed sort parameter.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16881 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 940bb0d9
...@@ -1522,9 +1522,10 @@ def makeTreeList(here, form, root_dict, report_path, base_category, ...@@ -1522,9 +1522,10 @@ def makeTreeList(here, form, root_dict, report_path, base_category,
object_list = root.searchFolder(sort_on=sort_on) object_list = root.searchFolder(sort_on=sort_on)
else: else:
if filtered_portal_types not in [[],None,'']: if filtered_portal_types not in [[],None,'']:
object_list = list_method(portal_type=filtered_portal_types) object_list = list_method(portal_type=filtered_portal_types,
sort_on=sort_on)
else: else:
object_list = list_method() object_list = list_method(sort_on=sort_on)
for zo in object_list: for zo in object_list:
o = zo.getObject() o = zo.getObject()
if o is not None: if o is not None:
......
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