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

Redeploy of fragments destroy fragments with dynamic Id's

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 7.3.5 CE GA6
    • Fix Version/s: None
    • Component/s: Fragments Toolkit
    • Labels:
      None

      Description

      I created my own "Tabs"-fragment to have control over it, but it breaks everytime I redeploy it. Steps to reproduce:

      1. Create Fragment with liferay-js-toolkit.
      2. Add the "Tabs"-fragment-code to the custom fragment
      3. Deploy it (npm run import)
      4. Place it on a page
      5. Configure the titles of the fragment

      1. Deploy it again
      2. See how it's broken now

      TIn the view it still can be rendered, but the tab-titles are back to the default one.

      I don't know if it's in combination with autopropagation of fragment but yes I have that active.

      I think the problem has something to do that the repetition id won't get resolved before rendering. This one:

      data-lfr-editable-id="title${i+1}"

      BTW I had the same problem with the custom heading-fragment. There the tag h1-h6 are dynamic, but solved it there with writing out each h1-h6 and make 6 if.

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            marco.endres Marco Endres
            Participants of an Issue:
            Recent user:
            Marco Endres
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              1 year, 5 weeks, 5 days ago

                Packages

                Version Package