Commit fa07e4d4 authored by Rafael Monnerat's avatar Rafael Monnerat Committed by Xiaowu Zhang

Use form_id from request instead hardcoded Form name

parent 50aff0b5
......@@ -191,7 +191,6 @@
\n
TODO:\n
- use form validation (Base_edit)\n
- use \'form_id\' instead of hardcoded value \'SaleOrder_viewAsWeb\'\n
"""\n
translateString = context.Base_translateString\n
shopping_cart = context.SaleOrder_getShoppingCart()\n
......@@ -202,7 +201,7 @@ if field_my_order_line_id is not None:\n
else:\n
portal_status_message = "Please select an item."\n
\n
context.Base_redirect(\'SaleOrder_viewAsWeb\', \\\n
context.Base_redirect(context.REQUEST.get(\'form_id\', \'WebSection_viewShoppingCart\'), \\\n
keep_items={\'portal_status_message\': translateString(portal_status_message, mapping = dict())})\n
</string> </value>
</item>
......
303
\ No newline at end of file
304
\ 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