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

Form Portlet/Widget Generates HTML with duplicate id

    Details

      Description

      Steps to Reproduce

      1. Start up Liferay and login as admin user
      2. Navigate to Site Administration > Content and Data > Forms
      3. Create a new form
      4. Add an input field to the form and publish the form
      5. Navigate to the Home page and add a Form portlet to the page
      6. Configure the portlet to display the form created in step 3-4
      7. Inspect the Form's HTML
      8. Search for elements with the class attribute 'lfr-ddm-form-container'

      Expected Behavior: The elements that are displayed have different id attributes.

      Actual Behavior: There are two elements with the class, but they also have the same id attribute.

      Branch 7.1.x – Reproduced

      09fed2f86ff90bebb3536abd14b7e5e8b51bda5a

      Master – Not Reproducible

      In master, there is no ID attribute defined for the div that contains the lfr-ddm-form-container class.

      86da566560be2ecc80203f578e693446f97a59e3

        Attachments

          Activity

            People

            Assignee:
            chao.wang Chao Wang
            Reporter:
            lino.alves Lino Alves
            Participants of an Issue:
            Recent user:
            Yunlin "Steven" Sun
            Engineering Assignee:
            Lino Alves
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              9 weeks ago

                Packages

                Version Package
                7.1.10 DXP FP21
                7.1.X