Commit bf65a1ce authored by Fabien Morin's avatar Fabien Morin

pass edit_order parameter to edit method as in Base_edit script

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34221 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8c71ffb9
......@@ -70,6 +70,7 @@ request=context.REQUEST\n
try:\n
# Define form basic fields\n
form = getattr(context,form_id)\n
edit_order = form.edit_order\n
# Validate\n
form.validate_all_to_request(request)\n
# Basic attributes\n
......@@ -97,7 +98,7 @@ try:\n
v.update(gv)\n
context.setCriterion(property, **v)\n
# Update basic attributes\n
context.edit(REQUEST=request,**kw)\n
context.edit(REQUEST=request, edit_order=edit_order, **kw)\n
context.reindexObject()\n
except FormValidationError, validation_errors:\n
# Pack errors into the request\n
......@@ -186,6 +187,7 @@ request[ \'RESPONSE\' ].redirect( redirect_url )\n
<string>request</string>
<string>getattr</string>
<string>form</string>
<string>edit_order</string>
<string>kw</string>
<string>_getiter_</string>
<string>f</string>
......
1546
\ No newline at end of file
1547
\ 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