Commit f95fadab authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

'order' value of a simulation movement now can be multiple.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31511 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a21cb623
......@@ -60,11 +60,9 @@ class CausalityAssignmentMovementGroup(MovementGroup):
# Go upper into the simulation tree in order to find an order link
while parent.getOrderValue() is None and not(parent.isRootAppliedRule()):
parent = parent.getParentValue()
order_movement = parent.getOrderValue()
if order_movement is not None:
causality = property_dict.get('causality_list', [])
order_movement_url = order_movement.getRelativeUrl()
if order_movement_url not in causality:
causality.append(order_movement_url)
property_dict['causality_list'] = causality
causality_list = property_dict.get('causality_list', [])
for order_movement in parent.getOrderList():
if order_movement not in causality_list:
causality_list.append(order_movement)
property_dict['causality_list'] = causality_list
return property_dict
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