Commit f567a92c authored by Jérome Perrin's avatar Jérome Perrin

Fix for bug introduced in r8259 , input_simulation_state and

output_simulation_state must always be a list



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8274 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 26d43e9b
...@@ -375,8 +375,12 @@ class SimulationTool (BaseTool): ...@@ -375,8 +375,12 @@ class SimulationTool (BaseTool):
else: else:
# first, we evaluate simulation_state # first, we evaluate simulation_state
if simulation_state and isinstance(simulation_state, string_or_list): if simulation_state and isinstance(simulation_state, string_or_list):
sql_kw['input_simulation_state'] = simulation_state if isinstance(simulation_state, str):
sql_kw['output_simulation_state'] = simulation_state sql_kw['input_simulation_state'] = [simulation_state]
sql_kw['output_simulation_state'] = [simulation_state]
else:
sql_kw['input_simulation_state'] = simulation_state
sql_kw['output_simulation_state'] = simulation_state
# then, if omit_transit == 1, we evaluate (simulation_state - # then, if omit_transit == 1, we evaluate (simulation_state -
# transit_simulation_state) for input_simulation_state # transit_simulation_state) for input_simulation_state
if omit_transit: if omit_transit:
......
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