Commit 6da02067 authored by Alexandre Boeglin's avatar Alexandre Boeglin

Prevent undefined variables in domain mode.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19989 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e107118d
......@@ -1620,6 +1620,7 @@ class ListBoxRenderer:
# Flat list mode or domain tree mode.
selection.edit(params = param_dict, report = None)
domain_found = 0
if self.isDomainTreeMode():
domain_selection = self.getDomainSelection()
selection.edit(domain=domain_selection)
......@@ -1645,12 +1646,9 @@ class ListBoxRenderer:
list_method)
domain_count_method = domain.getProperty('count_method',
count_method)
domain_found = 1
break
else:
domain_context = context
domain_list_method = list_method
domain_count_method = count_method
else:
if not domain_found:
domain_context = context
domain_list_method = list_method
domain_count_method = count_method
......
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