Commit 082acfcb authored by Rafael Monnerat's avatar Rafael Monnerat

Make planning box works as Listbox when filter the portal types.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15857 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3d440002
...@@ -1451,7 +1451,12 @@ def makeTreeList(here, form, root_dict, report_path, base_category, ...@@ -1451,7 +1451,12 @@ def makeTreeList(here, form, root_dict, report_path, base_category,
# If this is a folder, try to browse the hierarchy # If this is a folder, try to browse the hierarchy
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,'']:
object_list = list_method(portal_type=filtered_portal_types) object_list = list_method(portal_type=filtered_portal_types)
else:
object_list = list_method()
if len(object_list) == 0:
object_list = [root]
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