Commit 396630ef authored by Nicolas Delaby's avatar Nicolas Delaby

Do not override value pass in arguments

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45097 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a2b82297
...@@ -60,6 +60,9 @@ for i in solver_list:\n ...@@ -60,6 +60,9 @@ for i in solver_list:\n
solver_process = i\n solver_process = i\n
break\n break\n
\n \n
if not context.getPortalObject().portal_solver_processes.isDivergent(context):\n
return []\n
\n
if solver_process is None:\n if solver_process is None:\n
solver_process = context.getPortalObject().portal_solver_processes.newSolverProcess(context)\n solver_process = context.getPortalObject().portal_solver_processes.newSolverProcess(context)\n
else:\n else:\n
......
...@@ -53,7 +53,8 @@ ...@@ -53,7 +53,8 @@
<value> <string>from Products.ERP5Type.Message import translateString\n <value> <string>from Products.ERP5Type.Message import translateString\n
\n \n
request= context.REQUEST\n request= context.REQUEST\n
listbox = request.get(\'listbox\')\n if not listbox:\n
listbox = request.get(\'listbox\', [])\n
line_list = context.Delivery_getSolverDecisionList(listbox=listbox)\n line_list = context.Delivery_getSolverDecisionList(listbox=listbox)\n
for listbox_key in listbox:\n for listbox_key in listbox:\n
listbox_dict = listbox[listbox_key]\n listbox_dict = listbox[listbox_key]\n
......
150 151
\ No newline at end of file \ No newline at end of file
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