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

Pass form_id when redirecting to dialog action

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19907 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 056ad2b0
......@@ -65,8 +65,17 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>return container.REQUEST.RESPONSE.redirect(dialog_action_url)\n
</string> </value>
<value> <string encoding="cdata"><![CDATA[
if \'?\' in dialog_action_url:\n
dialog_action_url = \'%s&form_id=%s\' % (dialog_action_url, form_id)\n
else:\n
dialog_action_url = \'%s?form_id=%s\' % (dialog_action_url, form_id)\n
\n
return container.REQUEST.RESPONSE.redirect(dialog_action_url)\n
]]></string> </value>
</item>
<item>
<key> <string>_code</string> </key>
......@@ -88,7 +97,7 @@
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>dialog_action_url</string> </value>
<value> <string>dialog_action_url, form_id=\'\'</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
......@@ -108,13 +117,14 @@
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>1</int> </value>
<value> <int>2</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>dialog_action_url</string>
<string>form_id</string>
<string>_getattr_</string>
<string>container</string>
</tuple>
......@@ -128,7 +138,9 @@
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
<tuple>
<string></string>
</tuple>
</value>
</item>
<item>
......
505
\ No newline at end of file
506
\ 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