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 @@ ...@@ -65,8 +65,17 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>return container.REQUEST.RESPONSE.redirect(dialog_action_url)\n <value> <string encoding="cdata"><![CDATA[
</string> </value>
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>
<item> <item>
<key> <string>_code</string> </key> <key> <string>_code</string> </key>
...@@ -88,7 +97,7 @@ ...@@ -88,7 +97,7 @@
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>dialog_action_url</string> </value> <value> <string>dialog_action_url, form_id=\'\'</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -108,13 +117,14 @@ ...@@ -108,13 +117,14 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>1</int> </value> <value> <int>2</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>dialog_action_url</string> <string>dialog_action_url</string>
<string>form_id</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>container</string> <string>container</string>
</tuple> </tuple>
...@@ -128,7 +138,9 @@ ...@@ -128,7 +138,9 @@
<item> <item>
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<none/> <tuple>
<string></string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
505 506
\ 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