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

Can not select web content articles created with a specific structure when set itemSubtype with data engine enabled

    Description

    Steps to reproduce:

    1. Copy the config file to bundle's osgi/config folder
    2. Add a basic web content article
    3. Disable autogenerate structure key
    4. Add a web content structure with Text field, set the structure key to STRUCTURE-TEXT
    5. Create a web content based on new structure
    6. Create a fragment with this configuration:
      {
          "fieldSets": [
      		{
      		"fields": [
      			{
                              "label": "Web Content With Text",
      			"name": "itemSelectorName",
      			"type": "itemSelector",
      			"typeOptions": {
      				"itemType" : "com.liferay.journal.model.JournalArticle",
      				"itemSubtype": "STRUCTURE-TEXT"
      			     }
      			}
      		   ]
      	     }
      	]
      }
      

      And this HTML:

      <div class="fragment_wctext">
        [#if configuration.itemSelectorName.content??]
          ${itemSelectorNameObject.getTitle()}
          ${itemSelectorNameObject.getDescription()}
          ${itemSelectorNameObject.getContent()}
        [#else]
           <div class="portlet-msg-info">The selected content will be shown here.</div>  
        [/#if]
      </div>
      
    1. Add a new content page and add created fragment to the page
    2. Click on the fragment configuration
    3. Assert can only select a web content based on new structure.

    Actual result:
    Can not select web content articles created with a specific structure when set itemSubtype with data engine enabled, web content does not display.

    Expected result:
    Can select web content articles created with a specific structure when set itemSubtype with data engine enabled.

      Attachments

        Issue Links

          Activity

            People

            Assignee:
            yang.cao Yang Cao
            Reporter:
            lu.liu Lu Liu
            Participants of an Issue:
            Recent user:
            Sophia Zhang
            Engineering Assignee:
            Eudaldo Alonso
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

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

                Packages

                Version Package
                7.4.13 DXP GA1
                Master