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

A Syntax Error occurs during preview for structures created with names that have only numbers.

    Details

      Description

      Description
      If the field name of the web content structure starts with a number, a Syntax Error will occur.

      Steps to reproduce

      1. Start Liferay
      2. Go to Contents > Web Contents
      3. Go to the Structure tab and click the + button to add a new structure
      4. Enter a name for the structure > add "Text Box" field > change Setting:Name to "1" and save
      5. Go to the Template tab and click the + button to add a new template
      6. Enter a template name and select the structure created in step 4
      7. Select "Text Box" from the left tree and save it
      8. Go to Web Content tab, select the structure created in Step 4 from the + button and add web content
      9. Preview the added web content

      Actual result
      Syntax Error is displayed because variable name cannot start with a number.

      Expected result
      Content is displayed correctly.

      Reproduced in
      DXP-12
      72x Commit: be25f7ef4101328461888eda8713f935d66d6daa

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              EnterpriseReleaseHU Enterprise Release HU
              Reporter:
              il.kim Brian I. Kim
              Participants of an Issue:
              Recent user:
              Clarissa Velazquez
              Engineering Assignee:
              Brian I. Kim
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                20 weeks, 6 days ago

                  Packages

                  Version Package
                  7.2.10 DXP FP14
                  7.2.10.5 DXP SP5
                  7.2.X