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

White Space causes BigDecimal creation to fail.

    Details

      Description

      Description

      The client has found that when you add a Field Visiblity Expression to a form, the expression fails if the field itself has a numeric value with a space at the end. No error is shown in the UI or in the default logs

      Steps to reproduce

      1. Go to Content --> Forms and create a new form named "My Form"
      2. Add a "Single Checkbox" field named "My Checkbox"
      3. Add a "Text Field" named "My Text" and add the following Field Visibility Expression: MyCheckbox
      4. Add the Forms portlet to the main page and select the form created in step 1
      5. Check "My Checkbox" to show the "My Text" field
      6. Type "1234" and then press the spacebar

      Results of Testing

      Expected Results:
      Text field is still accepted

      Actual Results:
      Text field disappears with no messages

      Errors/Logs

      None

      Master

      Not Reproduced - no field visibility expression option - 9fac15228292bc1811b0f8fe3819f1e0165fa9a1

      Branch

      Reproduced - ae7c50606857c4cbd374ec32cd10a3df71b97f82 - field still fails, but an error appears in the UI informing the user that the field failed, and the field does not disappear

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 29 weeks ago

                Packages

                Version Package
                7.0.0 DXP FP46
                7.0.6 CE GA7
                7.0.0 DXP SP8
                7.0.X
                7.1.0 Beta 1