Commit 00a035aa authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

form_action should be respected as the edit method.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26585 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0e4dfbec
...@@ -90,9 +90,10 @@ for k in request_form.keys():\n ...@@ -90,9 +90,10 @@ for k in request_form.keys():\n
del request_form[k]\n del request_form[k]\n
\n \n
request.form.update(old_request)\n request.form.update(old_request)\n
return context.Base_edit(form_id,\n edit_method = getattr(context, request_form.get(\'form_action\', \'Base_edit\'))\n
selection_index=old_request.get(\'selection_index\', 0),\n return edit_method(form_id,\n
selection_name=old_request.get(\'selection_name\', \'\'))\n selection_index=old_request.get(\'selection_index\', 0),\n
selection_name=old_request.get(\'selection_name\', \'\'))\n
]]></string> </value> ]]></string> </value>
...@@ -165,6 +166,7 @@ return context.Base_edit(form_id,\n ...@@ -165,6 +166,7 @@ return context.Base_edit(form_id,\n
<string>request_form</string> <string>request_form</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>k</string> <string>k</string>
<string>edit_method</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
1166 1167
\ 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