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

[New Form Builder] When saving a numeric predefined value with a comma, the default value is reset to 0 and you can no longer set a predefined value with a comma

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: Master
    • Fix Version/s: Master
    • Component/s: Forms
    • Labels:

      Description

      Summary:
      When saving a numeric predefined value with a comma, the default value is reset to 0 and you can no longer set a predefined value with a comma.

      Steps to reproduce:

      1. Go to System Settings > Forms > Enable the experimental interface;
      2. Set the Language to Português (Brasil) at Account Settings;
      3. Go to Content > Forms;
      4. Add a Form > add a numeric field;
      5. Set the numeric field type to decimal > try to add a predefined value containing a comma (the decimal separator according to the Brazilian locale conventions);
      6. Save the Form > observe that the predefined value is reset to 0 and you can no longer set a predefined value with a comma.

      Expected result:

      1. When saving a numeric predefined value with a comma, the default value should be preserved.
      2. The user should be able to edit the predefined value with a comma how many times he wants.

      Actual result:
      When saving a numeric predefined value with a comma, the default value is reset to 0 and you can no longer set a predefined value with a comma.

      Reproducible in:
      http://test-6-1-2/web/guest
      master: cba537c39989bbd17606e4de4aa6b9ab9e81b30c
      Updated on: Tue Nov 13 20:16:05 2018 -0800

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex.candido Alex Candido
                Reporter:
                alex.candido Alex Candido
                Participants of an Issue:
                Recent user:
                Alex Candido
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 35 weeks, 6 days ago

                  Packages

                  Version Package
                  Master