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

Predefined value "0" won't be shown and cannot be saved for required non-localised integer field

    Details

      Description

      Description: 0 as a predefined value won't be shown in web content's integer field if the field's Localizable parameter is disabled
      Steps to reproduce:
      Start a 7.0 bundle with the latest Fix Pack (85)
      Go to Control Panel->Content->Web content
      Create a new structure with an integer field, set '0' as its predefined value, disable the 'Localizable' parameter
      Create a template for the structure
      Create a web content article using the structure, fill its title then Publish
      Edit the web content
      Current behavior: The number is not shown in the integer field
      Expected behavior: The number is shown in the integer field
      Note:
      Their biggest issue is if the Integer field is marked Required then the web content cannot be published with 0
      This happens only with '0' (zero). All other numbers are shown correctly after reopening the web content
      The behavior is reproducible from Fix Pack 84, before that it was working as expected
      7.0x @ commit (1b3c64e23c0deacb7658ff8da670bc9fd60c6bf6) reproduced
      master @ commit (1118c30dc352c6d778d403185d27c8dacca929d1) works

        Attachments

          Activity

            People

            • Assignee:
              yang.cao Yang Cao
              Reporter:
              norbert.nemeth Norbert Németh
              Participants of an Issue:
              Recent user:
              Clarissa Velazquez
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                17 weeks, 1 day ago

                Packages

                Version Package
                7.0.0 DXP FP86
                7.0.X