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

Fragment with item selector breaks when being added to a page

    Details

      Description

      Steps to reproduce:

      • Create a new Blogs Entry, providing a title and a content
      • Create a new fragment, and specify the configuration and html as follow

      Configuration:

      {
      "fieldSets": [{
          "fields": [{
              "label": "select-content",
              "name": "itemSelector1",
              "type": "itemSelector",
              "typeOptions": {
          "itemType" : "com.liferay.blogs.model.BlogsEntry",
              }
          }]
      }]
      }
      

      HTML:

      <div class="fragment_name">
        [#if configuration.itemSelector1.content??]
             ${configuration.itemSelector1.content}
        [/#if]
      </div>
      
      • Create a new page, and add the fragment to it

       

      Expected result: The fragment is added successfully

      Actual result: The fragment is added but freemarker errors are thrown

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              oziel.souza Oziel Souza
              Reporter:
              jurgen.kappler Jürgen Kappler
              Participants of an Issue:
              Recent user:
              Sophia Zhang
              Engineering Assignee:
              Jürgen Kappler
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                10 weeks, 3 days ago

                  Packages

                  Version Package
                  7.4.3.5 CE GA5
                  7.4.13 DXP U1
                  Master