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

Editable field isn't working within loops in page fragments

    Details

      Description

      The issue is reproduced in the vanilla bundle with a default classic theme.

      I've created a simple fragment using Freemarker's <#list> and <lfr-editable> field. Using fragment configuration I'm iterating the editable field with unique ids. The issue occurs whenever I change the value in the configuration and some fields are not editable.

      I checked the browser's console and I get the following JS error:

      Uncaught goog.asserts.AssertionError {
      message: "Failure: expected param content of type function(), but got undefined.",
      reportErrorToServer: true,
      messagePattern: "Failure: expected param content of type function(), but got undefined.",
      stack: "AssertionError: Failure: expected param content of...-dom@2.16.8/lib/IncrementalDomRenderer.js:4931:5)"
      }
      

      I've attached the fragment in the attachments.

       

      Steps to reproduce:

      1. Under Site Builder > Page Fragments, Import fragment entries.zip(Attached in the ticket) in a new collection.
      2. Drag the fragment on the content page, In the configuration defaultValue for iteration is 3. It works fine and fields are editable with default value 3.
      3. Click the fragments configuration icon and change the value for the Number of 'Number for Loop Variable' field to 15.
      4. Now if you randomly try to edit any field it's not editable, some fields get edited some don't.
      5. Check the browser's console and you will find the JS error I mentioned above.

      Related PTR: PTR-1579

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yang.cao Yang Cao
              Reporter:
              mohit.rajput Mohit Rajput
              Participants of an Issue:
              Recent user:
              Jason Pince
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  7.2.10 DXP FP6
                  7.2.X
                  7.3.1 CE GA2
                  7.3.2 CE GA3
                  7.3.10 DXP GA1
                  Master