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

Web content displayed with specific itemType returns html with content

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: Master
    • Fix Version/s: None
    • Labels:
      None
    • Fix Priority:
      3

      Description

      Steps to Reproduce:

      1. Create a basic web content with a title, summary, and content
      2. Create a fragment with this configuration:
        {
            "fieldSets": [
        		{
        		"fields": [
        			{
        			"name": "itemSelector1",
        			"type": "itemSelector",
        			"label": "Web Content",
        			"typeOptions": {
        				"itemType" : "com.liferay.journal.model.JournalArticle"
        			     }
        			}
        		   ]
        	     }
        	]
        }
        
      1. And this HTML:
        <div class="fragment_wc">
          [#if configuration.itemSelector1.content??]
            ${itemSelector1Object.getTitle()}
            ${itemSelector1Object.getDescription()}
            ${itemSelector1Object.getContent()}
          [/#if]
        </div>
        
      1. Add a new page and add your created fragment to the page
      2. Click on the fragment configuration
      3. Select your created web content

      Expected Result:
      The content is returned as normal text 

      Actual Result:
      The content is returned surrounded by <p></p>

      Reproduced on:
      Tomcat 9.0.17 + MySQL 5.7 Portal Master GIT ID: a2813d27c5ca56c8683af6dfbaac076fb2f4fc5e

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  33 weeks, 2 days ago

                  Packages

                  Version Package