Commit 28a7ff44 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

if no_group_list is empty, no need to add a bogus entry.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31064 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8e82265e
...@@ -169,7 +169,8 @@ class RuleMixin: ...@@ -169,7 +169,8 @@ class RuleMixin:
# The tester key does not even exist. # The tester key does not even exist.
# So, let us add all decision movements to no_group_list # So, let us add all decision movements to no_group_list
no_group_list.extend(decision_movement_dict[tester_key]) no_group_list.extend(decision_movement_dict[tester_key])
prevision_to_decision_map.append((None, no_group_list)) if len(no_group_list) > 0:
prevision_to_decision_map.append((None, no_group_list))
# Second, let us create small groups of movements # Second, let us create small groups of movements
for tester_key in prevision_movement_dict.keys(): for tester_key in prevision_movement_dict.keys():
......
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