Commit 7ca84732 authored by Aurel's avatar Aurel

do not retrieve causality uid if it was already provided

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30932 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a5ecb2e9
No related merge requests found
...@@ -99,10 +99,11 @@ class BPMBuilder(Alarm): ...@@ -99,10 +99,11 @@ class BPMBuilder(Alarm):
self.callBeforeBuildingScript() self.callBeforeBuildingScript()
# Select movements # Select movements
if input_movement_list is None: if input_movement_list is None:
business_path_value_list = self.getRelatedBusinessPathValueList() if not select_method_dict.has_key('causality_uid'):
if len(business_path_value_list) > 0: business_path_value_list = self.getRelatedBusinessPathValueList()
# use only Business Path related movements if len(business_path_value_list) > 0:
select_method_dict['causality_uid'] = [q.getUid() for q in business_path_value_list] # use only Business Path related movements
select_method_dict['causality_uid'] = [q.getUid() for q in business_path_value_list]
# do search # do search
input_movement_value_list = self.searchMovementList( input_movement_value_list = self.searchMovementList(
delivery_relative_url_list=existing_delivery_list, delivery_relative_url_list=existing_delivery_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