Commit 50bcc2cf authored by Jérome Perrin's avatar Jérome Perrin

Base_callDialogMethod should not fail if a request key is not a string

parent 79f99a14
......@@ -269,7 +269,7 @@ if (not(can_redirect) or len(url_params_string) > 2000):\n
# XXX unless we are in Folder_modifyWorkflowStatus which validates again !\n
if dialog_method != \'Folder_modifyWorkflowStatus\':\n
for key in list(request.keys()):\n
if key.startswith(\'field\') or key.startswith(\'subfield\'):\n
if str(key).startswith(\'field\') or str(key).startswith(\'subfield\'):\n
request.form.pop(key, None)\n
\n
# If we cannot redirect, then call the form directly.\n
......
41083
\ No newline at end of file
41084
\ 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