Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
6.1.20 EE GA2
-
6.1.x
-
Committed
-
3
Description
Reproduced in Branch & Master
Steps to reproduce:
Test 1:
- Add Shopping portlet to a page.
- Click Add Item and fill in the details
- Clear out Min Qty field and input Max Qty field.
- Click the Item and then Add to Shopping Cart.
- Set the Quantity field to a negative number (-1) or non-integer number ("c")
- Click Update Cart.
EXPECTED: displayed error that the quantity is not a number.
ACTUAL: the cart removes the item in question. This is problematic if a user has multiple items in their cart because they have no way to know it failed, which item disappeared, or how to add it again.
Test 2:
- Do same as above except this time put 1 as Min Qty and Max Qty of 20.
- Add item to cart
- There is now a drop down from 0-10.
You cannot add more than 10 items.
If you go back and try to additional items, the cart goes back to 0.
Attachments
Issue Links
- relates
-
LPE-11312 Shopping portlet cart allows invalid quantities
-
- Closed
-