Commit 1c60b172 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Titouan Soulard

erp5_mrp_change_managment: Fix concurrency problem when editing the same key multiple times

parent dff5f2dc
......@@ -103,10 +103,7 @@ def getExpectedTransformationTransformedResourceDict(transformation_change_list,
for key, value_list in base_dict.iteritems():
for ttr_value in value_list:
if 'transformation_change' in ttr_value:
if key not in expected_dict:
expected_dict[key] = []
expected_dict[key].append(ttr_value)
expected_dict[key] = [ttr_value]
return expected_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