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

Asset Category Selector configured category ids are assigned to the wrong vocabulary

    Details

      Description

      When setting an initial set of category ids to the liferay-asset:asset-categories-selector, via its categoryIds attribute, every category is assigned to every vocabulary regardless its membership.

      Steps to reproduce:

      • Create a "Minium DEMO" site
      • Browse to the dashboard page group/<site-name>/dashboard
      • Configure the Forecast Dashboard widget
      • Select a category and save

      Expected behaviour:

      The category is saved and assigned to the appropriate vocabulary

      Actual behaviour:

      The category is saved, its label is assigned to every listed vocabulary regardless of the category membership (see attached screenshot)

      Note: I could not find any other usage of the asset-category-selector using the taglib categoryIds attribute as follow:

      <liferay-asset:asset-categories-selector
         categoryIds="<%= commerceDashboardForecastDisplayContext.getAssetCategoryIds() %>"
         groupIds="<%= new long[] {company.getGroupId()} %>"
      />
       

      Note2: This bug was discovered while fixing the COMMERCE-6265 issue. To use provided steps to reproduce, teh fix for afore mentioned bug is required. 

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              team-echo Product Team Echo
              Reporter:
              riccardo.ferrari Riccardo Ferrari
              Participants of an Issue:
              Recent user:
              Sophia Zhang
              Engineering Assignee:
              Jürgen Kappler
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  7.4.3.4 CE GA4
                  7.4.13 DXP GA1
                  Master