Commit ad516401 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

if business path is missing, just return input movement.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34568 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent be11bc40
......@@ -73,7 +73,7 @@ class MovementGeneratorMixin:
for input_movement in input_movement_list:
for business_path in business_process.getPathValueList(
trade_phase_list,
input_movement):
input_movement) or [None]:
input_movement_and_path_list.append((input_movement, business_path))
business_path not in business_path_list and business_path_list \
.append(business_path)
......
......@@ -319,7 +319,7 @@ class Rule(Predicate, XMLObject):
for input_movement in input_movement_list:
for business_path in business_process.getPathValueList(
trade_phase_list,
input_movement):
input_movement) or [None]:
input_movement_and_path_list.append((input_movement, business_path))
return input_movement_and_path_list
......
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