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

Asset-publisher doesn't filter correctly by structure field when this field is not localizable

    Details

    • Fix Priority:
      3

      Description

      When you create a structure with a nonlocalizable field and, in an asset publisher, try to use this nonlocalizable field to filter the web contents, the asset publisher doesn't show any result despite there are web contents matching the filter.

      Steps to reproduce:

      1. Create a Structure called "st1" with at least a single selection field.
      2. The single selection field must be two options ("OptionA" and "OptionB") and must be marked like NO-localizable.
      3. Create a couple of web contents using the new structure, the first one using the "OptionA" in the nonlocalizable field and the other one with the "OptionB".
      4. On a page, add an Asset-publisher with the following config:
        • Asset selection: Dynamic
        • Source-Asset type: Web Content Article
        • Source-Web Content article structure: st1
        • Source-Filter by Field: true
        • Source-Select: Single selection field: "OptionA"

      Expected result :

      • The Asset publisher displays the first web content created.

      Current result :

      • The Asset publisher doesn't display any content

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            david.tello David Tello
            Participants of an Issue:
            Recent user:
            Liferay JIRA Bot
            Engineering Assignee:
            David Tello
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              6 weeks, 1 day ago

                Packages

                Version Package