Uploaded image for project: 'PUBLIC - Liferay Commerce'
  1. PUBLIC - Liferay Commerce
  2. COMMERCE-2902

Product versioning value should only accept positive integers

    Details

    • Type: Bug
    • Status: Blocked
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 2.0.7
    • Fix Version/s: None
    • Labels:
      None

      Description

      STEPS

      1. Go to Control Panel -> Configuration -> System Settings
      2. Under "Commerce", go to Catalog -> Product Versioning

      CASE 1
      Input a negative integer (e.g. -5) and save

      ACTUAL BEHAVIOR
      The value seems to be correctly saved.

      EXPECTED BEHAVIOR
      The value is not accepted (e.g. A message appears to advise that the accepted value is a positive integer)

      Out of Scope (2020-04-16)

      CASE 2
      Input a decimal, a string or any other character (e.g. "5.2", "5,2", "5-2", "value", etc.) and save

      ACTUAL BEHAVIOR
      The saved value is "0" that, if consistent with the other functionalities, should mean infinite.

      EXPECTED BEHAVIOR
      The value is not accepted (e.g. A message appears to advise that the accepted value is a positive integer).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              luca.pellizzon Luca Pellizzon
              Reporter:
              alessandro.iovane Alessandro Iovane
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:

                  Packages

                  Version Package