diff --git a/product/ERP5Form/SelectionTool.py b/product/ERP5Form/SelectionTool.py index fc9912698b3efc7d5a83180e92b070a910993456..1ea211f225c945a6677d4b58d239e7b244008e34 100644 --- a/product/ERP5Form/SelectionTool.py +++ b/product/ERP5Form/SelectionTool.py @@ -1522,9 +1522,10 @@ def makeTreeList(here, form, root_dict, report_path, base_category, object_list = root.searchFolder(sort_on=sort_on) else: 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: - object_list = list_method() + object_list = list_method(sort_on=sort_on) for zo in object_list: o = zo.getObject() if o is not None: