Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-10668

Quantity of the product added in the cart should not be negative

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Trunk, Release Branch 16.11, Release Branch 17.12
    • Fix Version/s: 17.12.01, 16.11.06
    • Component/s: None
    • Labels:
      None

      Description

      When a user adds a product to cart from View cart page, the quantity field can be changed to negative which should not happen.

      Steps to regenerate -

      Navigate to View Cart Page

      Add a product - GZ-1000 and quantity - 1
      Now update the quantity in cart to a negative number.

       

      Expected -

      The user should not be able to decrease the count to negative when the item is in the cart

      Please have a look at the attached screenshot.

        Attachments

        1. Negative product quantity in cart.png
          58 kB
          Dikpal Kanungo
        2. OFBIZ-10668.patch
          1 kB
          Prakhar Kumar

          Activity

            People

            • Assignee:
              suraj.khurana Suraj Khurana
              Reporter:
              Dikpal.Kanungo Dikpal Kanungo
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: