Commit 3832fae0 authored by Romain Courteaud's avatar Romain Courteaud

Redirect to dialog form in case of a ... dialog

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18919 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c1137deb
...@@ -79,8 +79,15 @@ kw = { \'selection_index\': selection_index,\n ...@@ -79,8 +79,15 @@ kw = { \'selection_index\': selection_index,\n
\n \n
# Default behaviour is not as great but returns something\n # Default behaviour is not as great but returns something\n
kw.update(request.form)\n kw.update(request.form)\n
\n
if kw.has_key(\'listbox_uid\'): del kw[\'listbox_uid\']\n if kw.has_key(\'listbox_uid\'): del kw[\'listbox_uid\']\n
if kw.has_key(\'list_start\'): del kw[\'list_start\']\n if kw.has_key(\'list_start\'): del kw[\'list_start\']\n
\n
if request.form.has_key(\'dialog_id\'):\n
form_id = request.form[\'dialog_id\']\n
else:\n
form_id = request.form[\'form_id\']\n
\n
request.RESPONSE.redirect(\'%s/%s?%s\' % (context.absolute_url(), form_id, make_query(kw)))\n request.RESPONSE.redirect(\'%s/%s?%s\' % (context.absolute_url(), form_id, make_query(kw)))\n
</string> </value> </string> </value>
</item> </item>
...@@ -134,6 +141,7 @@ request.RESPONSE.redirect(\'%s/%s?%s\' % (context.absolute_url(), form_id, make_ ...@@ -134,6 +141,7 @@ request.RESPONSE.redirect(\'%s/%s?%s\' % (context.absolute_url(), form_id, make_
<string>request</string> <string>request</string>
<string>kw</string> <string>kw</string>
<string>_write_</string> <string>_write_</string>
<string>_getitem_</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
696 697
\ 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