Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
erp5
Commits
fa07e4d4
Commit
fa07e4d4
authored
Nov 14, 2012
by
Rafael Monnerat
Committed by
Xiaowu Zhang
Feb 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use form_id from request instead hardcoded Form name
parent
50aff0b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_deleteShoppingCartItem.xml
..._skins/erp5_commerce/SaleOrder_deleteShoppingCartItem.xml
+1
-2
bt5/erp5_commerce/bt/revision
bt5/erp5_commerce/bt/revision
+1
-1
No files found.
bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_deleteShoppingCartItem.xml
View file @
fa07e4d4
...
@@ -191,7 +191,6 @@
...
@@ -191,7 +191,6 @@
\n
\n
TODO:\n
TODO:\n
- use form validation (Base_edit)\n
- use form validation (Base_edit)\n
- use \'form_id\' instead of hardcoded value \'SaleOrder_viewAsWeb\'\n
"""\n
"""\n
translateString = context.Base_translateString\n
translateString = context.Base_translateString\n
shopping_cart = context.SaleOrder_getShoppingCart()\n
shopping_cart = context.SaleOrder_getShoppingCart()\n
...
@@ -202,7 +201,7 @@ if field_my_order_line_id is not None:\n
...
@@ -202,7 +201,7 @@ if field_my_order_line_id is not None:\n
else:\n
else:\n
portal_status_message = "Please select an item."\n
portal_status_message = "Please select an item."\n
\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
keep_items={\'portal_status_message\': translateString(portal_status_message, mapping = dict())})\n
</string>
</value>
</string>
</value>
</item>
</item>
...
...
bt5/erp5_commerce/bt/revision
View file @
fa07e4d4
303
304
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment