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

Repeatable Fields Displays Copied Data from Original Fields

    Details

    • Fix Priority:
      3

      Description

      Editing a repeatable field Web Content from the WCD portlet shows copied information from its parent field.

      Steps to reproduce:

      1. Add a structure
        • Make sure the field added is repeatable
          • (e.g. Add two repeatable Text fields, naming them "Head" and "Subtitle" in their 'Field Label' and 'Name' fields.)
      1. Add a template based on the structure
        • (to match the template with the above structure, copy this into the script editor in the Velocity language setting:
          <div> <h1>$head.getData()</h1>
          <h2>$subtitle.getData()</h2>
          </div>
          
      2. Add a web content based on the structure/template
      3. Repeat the fields two additional times (total 3 instances of each field)
        • Input some ascending values into the repeated fields (e.g. test1, test2, test3)
      4. Add a web content display portlet to the welcome page
      5. Select the web content to be displayed

      Only the original fields display in the WCD, and when editing the web content from WCD, the repeated fields all have information copied from the original fields (see attached screenshot). No console exceptions occurred.

        Attachments

        1. sample_template.vm.txt
          0.3 kB
        2. sample_structure.xml
          0.8 kB
        3. copiedparentfields.png
          copiedparentfields.png
          41 kB

          Issue Links

            Activity

              People

              Assignee:
              brian.wulbern Brian Wulbern
              Reporter:
              brian.wulbern Brian Wulbern
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 12 weeks, 4 days ago

                  Packages

                  Version Package
                  6.2.0 CE B2