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

Numeric field translation's mask is not applied on Translate feature

    Details

    • Fix Priority:
      4

      Description

      Description

      When trying to translate a Numeric - Decimal field for locales which uses a comma (,) using the Translate option from the Web Content list (not opening the data-engine-renderer), the field mask is not applied, leading to an issue where the value of the field changes.

      Pre-conditions

      1. Create a Structure with at least a Numeric field, and set it's type to Decimal;

      Steps to Reproduce

      1. Create a Web Content from the created Structure;
      2. Input a decimal value on the Numeric field (e.g. 1.1) and Publish it;
      3. From the list, click on the 3 dot menu, and choose Translate;
      4. Change the language to a locale which uses comma as decimal separator;
      5. Observe that the mask for the decimal separator is not applied;
      6. Publish the Web Content, then open to edit and assert the value for the translated locale;

      Expected Result

      Field mask should be correctly applied per locale, and the data should persist.

      Actual Result

      Observe that upon publishing the Web Content with the incorrect mask for the field, the value gets changed to and integer composed by all digits of the decimal number. (ActualResult_Mar10_LPS-128924.mp4)

      Reproduced In
      master: 98801a652f5794ad71c756c4dd8969d14f842c06

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            emanuel.silva Emanuel Silva
            Participants of an Issue:
            Recent user:
            Rafaela Nascimento
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              13 weeks, 3 days ago

                Packages

                Version Package