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

Numeric field validations does not work properly for a Decimal field

Details

    Description

      Description

      When using the validation "Is Equal To" or "Is not Equal to" on a Numeric field set to Decimal, the validation sees integer and decimal round numbers as different (example: 10 and 10.0 are considered different).
      See video attached.

      Steps to Reproduce

      1. Go to Content & Data >  Forms > Add new Form
      2. Add a Numeric field and set it's type to Decimal
      3. Add a Validation Is Equal To or Is not Equal To
      4. Publish the form and Open it
      5. Check the input with both integer and decimal round numbers accordingly to the Validation filter (bug)

      Expected Result

      Validations for Numeric Decimal fields doesn't differentiate integer and decimal round numbers.

      Actual Result

      The validation considers the Integer and Decimal round numbers as different (example 10 and 10.0). (RetestResult_May31_LPS-133341.mp4)

      Reproduced In
      master: 48d8c4c22e5149acd40b01618af8598603d7117a

      Attachments

        Activity

          People

            matheus.almeida Matheus Almeida (Inactive)
            emanuel.silva Emanuel Silva
            Kiyoshi Lee Kiyoshi Lee
            Matheus Almeida Matheus Almeida (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              1 year, 35 weeks, 3 days ago

              Packages

                Version Package
                7.2.10 DXP FP15
                7.2.X
                7.3.10.3 DXP SP3
                7.3.X
                7.4.2 CE GA3 DXP 7,4
                7.4.13 DXP GA1
                Master