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

The "Filter Collection" option is missing from the menu in "Collection Display Options"

Description

    Steps:

    1. Create a picklist with several items
    2. Create an Object with a picklist
    3. Create several object entries with the picklist items
    4. Add a new blank page
    5. Add a "Collection Display" to the page
    6. On the right, add the Object as a "Collection Provider"
    7. On the right, click on the menu button under "Collection"

    Expected result:
    Expected to see the options,"Delete Collection" and "Filter Collection".

    Actual result:
    "Filter Collection" is missing.

    After adding the Object in Step 6, the following error is thrown:

    ERROR [http-nio-8080-exec-10][PortletServlet:117] null
    javax.portlet.PortletException: java.lang.NullPointerException
    	at com.liferay.portal.kernel.portlet.bridges.mvc.BaseMVCResourceCommand.serveResource(BaseMVCResourceCommand.java:49) ~[portal-kernel.jar:?]
    	at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.callResourceMethod(MVCPortlet.java:462) ~[portal-kernel.jar:?]
    	at com.liferay.portal.kernel.portlet.LiferayPortlet.serveResource(LiferayPortlet.java:137) ~[portal-kernel.jar:?]
    	at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.serveResource(MVCPortlet.java:366) ~[portal-kernel.jar:?]
    	at com.liferay.portlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:146) ~[portal-impl.jar:?]
    	at com.liferay.portlet.ScriptDataPortletFilter.doFilter(ScriptDataPortletFilter.java:88) ~[portal-impl.jar:?]
    	at com.liferay.portlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:140) ~[portal-impl.jar:?]
    	at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:78) ~[portal-kernel.jar:?]
    	at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:113) ~[portal-kernel.jar:?]
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:764) ~[servlet-api.jar:4.0.FR]
    ...
    ...
    ...
    Caused by: java.lang.NullPointerException
    	at com.liferay.info.form.InfoForm$Builder.infoFieldSetEntry(InfoForm.java:185) ~[bundleFile:?]
    	at com.liferay.object.internal.info.collection.provider.ObjectEntrySingleFormVariationInfoCollectionProvider.getConfigurationInfoForm(ObjectEntrySingleFormVariationInfoCollectionProvider.java:173) ~[?:?]
    	at com.liferay.layout.content.page.editor.web.internal.portlet.action.GetCollectionConfigurationMVCResourceCommand.doServeResource(GetCollectionConfigurationMVCResourceCommand.java:87) ~[bundleFile:?]
    	at com.liferay.portal.kernel.portlet.bridges.mvc.BaseMVCResourceCommand.serveResource(BaseMVCResourceCommand.java:41) ~[portal-kernel.jar:?]
    

     
    Reproduced on:
    Tomcat 9.0.56 + MySQL 5.7
    Portal master GIT ID: 1d6c749f746f278280ea92f3cc5a4ef0c04a5d7b

    Attachments

      Activity

        People

          daniel.bonasser Daniel Bonasser
          timothy.pak Timothy Pak
          Felipe Lins Felipe Lins
          Daniel Bonasser Daniel Bonasser
          Votes:
          1 Vote for this issue
          Watchers:
          2 Start watching this issue

          Dates

            Created:
            Updated:
            Resolved:
            31 weeks, 6 days ago

            Packages

              Version Package
              7.4.3.44 CE GA44
              Master