Commit 0b0c0089 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_simulation] Prevent duplicated keep_items

parent e3de4074
......@@ -16,8 +16,8 @@ if not listbox:
line_list = context.Delivery_getSolverDecisionList(listbox=listbox)
def displayParallelChangeMessage():
message = translateString("Workflow state may have been updated by other user. Please try again.")
return context.Base_redirect(form_id, keep_items={'portal_status_message': message}, **kw)
kw["keep_items"] = {'portal_status_message': translateString("Workflow state may have been updated by other user. Please try again.")}
return context.Base_redirect(form_id, **kw)
# if we are not divergence any more
if len(line_list) == 0:
......
......@@ -5,8 +5,8 @@ listbox = request.get('listbox')
line_list = context.Delivery_getSolverDecisionList(listbox=listbox)
if len(line_list) == 0:
message = translateString("Workflow state may have been updated by other user. Please try again.")
return context.Base_redirect(form_id, keep_items={'portal_status_message': message}, **kw)
kw["keep_items"] = {'portal_status_message': translateString("Workflow state may have been updated by other user. Please try again.")}
return context.Base_redirect(form_id, **kw)
for listbox_key in listbox:
listbox_dict = listbox[listbox_key]
......
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