Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-103437

The number field should be validated in System Settings

    Details

      Description

      The number filed is not validated in System Settings, like under assets. Issue is reproducible portal-wide for alpha characters and large numbers.
      Steps to reproduce:

      1. Go to System Settings > Assets
      2. Set Maximum Number of Tags with alpha characters
      3. Set Maximum Number of Tags with 999999999999999999999999999999(a large number)
      4. Go to System Settings, navigating "Commerce", go to Catalog -> Product Versioning
      • If no commerce found in portal, try edit the number field of other category except Maximum Number of Tags in Asset
      1. Set nagetive number and Save
      2. Set a decimal and Save

      Current behavior:
      Alpha characters: Success message shows: Your request completed successfully, but Maximum Number of Tags feild will turn to 0 again.
      Large number: Success message shows: Your request completed successfully, but Maximum Number of Tags feild will turn to 0 again.
      Nagetive number: The nagetive number saved with success message.

      Expected behavior:
      Alpha characters: Failure message shows to tell user not allow to set alpha characters.
      Large number: Failure message shows to tell the user not allow to set that large number.
      Nagetive number: Failure message shows to tell the user not allow to set that nagetive/decimal number.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              melody.wu Melody Wu
              Reporter:
              yvonne.han Yvonne Han
              Participants of an Issue:
              Recent user:
              Melody Wu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 week, 2 days ago

                  Packages

                  Version Package
                  Master