Commit cedb72ed authored by Arnaud Fontaine's avatar Arnaud Fontaine

Do not modify value as it is used again in case the submit could not be found


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@44790 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ae7d3bad
......@@ -634,16 +634,13 @@ class ContextMainForm(MainForm):
@type script_id: str
"""
try:
if value:
value = '%s?workflow_action=%s' % (script_id, value)
self.submitSelect('select_action', 'Base_doAction:method', label, value)
self.submitSelect('select_action', 'Base_doAction:method', label,
value and '%s?workflow_action=%s' % (script_id, value))
except LookupError:
if value:
value = '%s?field_my_workflow_action=%s' % (script_id, value)
self.submitSelect('select_action', 'Base_doAction:method', label, value)
self.submitSelect('select_action', 'Base_doAction:method', label,
value and '%s?field_my_workflow_action=%s' % (script_id,
value))
def submitDialogCancel(self):
"""
......
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