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

Filter by structure field can't be set in Asset Publisher portlet configuration

Details

    Description

      Reproduction steps:

      1. Set up a bundle and start it
      2. Create a new site
      3. Create a structure name 'struct1' in the new site, add more than 20 text fields (drag & drop one, keep clicking on '+' button to add new ones).
      4. Add a template to it (doesn't have to contain all text fields)
      5. Create a widget page and an Asset Publisher on it
      6. Configure Asset Publisher:
        • In 'Source' section, select 'Asset Type' as 'Web Content Article'
        • For 'Web Content Article Structures', select 'struct1'
      7. Check 'Filter by Field' and click 'Select'
      8. Go to the 2nd page and select a field, add a value and click 'Apply'
        Expected: the filter field name and value is shown in the AP configuration form. When clicking on 'Save', the setting is actually saved in portlet settings.
        Actual: no filter field name and value is shown in AP configuration form. Clicking on 'Save' doesn't update the filter in the portlet settings.

      Notes:

      • Can be reproduced in master and 7.2 with only one field and no pagination. Basically, the filter can't be set at all.
      • In 7.0 and 7.1, it only works correctly when pagination is not used (no other page is selected, number of items is not updated). Basically, it only works for items on the first page.
      • In 7.0.x, the second popup is rendered in select_structure_field.jsp. When clicking on 'Apply', this event handler should write back the filter values to the AP config form: configuration_dynamic.jsp#L793. When the pagination is changed, this handler is not called for some reason.

      Attachments

        Issue Links

          Activity

            People

              yang.cao Yang Cao
              vendel.toreki Vendel Töreki
              Kiyoshi Lee Kiyoshi Lee
              Vendel Töreki Vendel Töreki
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                3 years, 24 weeks ago

                Packages

                  Version Package
                  7.0.10.13 DXP SP13
                  7.0.X
                  7.1.X
                  7.2.10 DXP FP4
                  7.2.X
                  7.3.0 CE GA1
                  7.3.10 DXP GA1
                  Master