Commit dc6c4af0 authored by Kevin Deldycke's avatar Kevin Deldycke

This little modification correct the bug #56 ("switching to domain tree the...

This little modification correct the bug #56 ("switching to domain tree the first time shows all base categories").


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3625 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6989e03d
...@@ -72,6 +72,10 @@ def makeTreeBody(form, root_dict, domain_path, depth, total_depth, unfolded_list ...@@ -72,6 +72,10 @@ def makeTreeBody(form, root_dict, domain_path, depth, total_depth, unfolded_list
if total_depth is None: if total_depth is None:
total_depth = max(1, len(unfolded_list)) total_depth = max(1, len(unfolded_list))
# This two lines must correct the bug #56
if domain_path == ('portal_categories',):
return ''
if type(domain_path) is type('a'): domain_path = domain_path.split('/') if type(domain_path) is type('a'): domain_path = domain_path.split('/')
portal_categories = getattr(form, 'portal_categories', None) portal_categories = getattr(form, 'portal_categories', 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