Commit 565a1c5d authored by Łukasz Nowak's avatar Łukasz Nowak

- relation to business path have to be kept untouched

 - as this relation is category use canonised property name - causality_list


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28365 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fe4686d4
...@@ -369,12 +369,13 @@ class BPMRule(Predicate, XMLObject): ...@@ -369,12 +369,13 @@ class BPMRule(Predicate, XMLObject):
property_dict['start_date'] = movement.getStartDate() property_dict['start_date'] = movement.getStartDate()
property_dict['stop_date'] = movement.getStopDate() property_dict['stop_date'] = movement.getStopDate()
# save a relation to business path
property_dict['causality_value_list'] = [business_path]
# rule specific # rule specific
property_dict.update(**self._getExpandablePropertyUpdateDict(applied_rule, property_dict.update(**self._getExpandablePropertyUpdateDict(applied_rule,
movement, business_path, property_dict)) movement, business_path, property_dict))
# save a relation to business path
property_dict['causality_list'] = [business_path.getRelativeUrl()]
return property_dict return property_dict
security.declareProtected(Permissions.ModifyPortalContent, 'expand') security.declareProtected(Permissions.ModifyPortalContent, 'expand')
......
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