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

Can't select document with specific mimeType in custom fragment

    Details

      Description

      Steps to Reproduce:

      1. Add a document type to the documents and media admin with a text field
      2. Add a new document with an image file of type jpg using that document type
      3. Create a fragment with this configuration:
        {
            "fieldSets": [
        		{
        		"fields": [
        			{
        			"name": "itemSelector1",
        			"type": "itemSelector",
        			"label": "Image",
        			"typeOptions": {
        				"itemType" : "com.liferay.portal.kernel.repository.model.FileEntry",
        			        "itemSubtype": DLFileEntryType-fileEntryTypeID"(whatever it is for structure),
        				"mimeTypes": ["img/jpg"]
        			     }
        			}
        		   ]
        	     }
        	]
        }
        
      1. And this HTML:
        <div class="fragment_img">
          [#if configuration.itemSelector1.title??]
             ${configuration.itemSelector1.title}
          [/#if]
        </div>
        
      1. Add a new page and add your created fragment to the page
      2. Click on the fragment configuration to select document

      Expected Results:
      Can select your uploaded document

      Actual Result:
      There is no document to select - the results are empty

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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brooke.dalton Brooke Dalton
              Reporter:
              brooke.dalton Brooke Dalton
              Participants of an Issue:
              Recent user:
              Jason Pince
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  7.3.0 CE GA1
                  7.3.10 DXP GA1
                  Master