-
Type:
Bug
-
Status: Closed
-
Resolution: Duplicate
-
Affects Version/s: 7.1.X
-
Fix Version/s: None
-
Component/s: Asset Framework
-
Labels:
-
Fix Priority:3
In Liferay 7.0 if you have several categories and several web contents with category and call to method AssetEntryLocalServiceUtil.getAssetCategoryAssetEntries(categoryId) this one returns the AssetEntry with relationships this categoryId.
After the upgrade to Liferay 7.1 this method returns the result that you create before but if you create new web content with category it doesn't find the new web content because the new relationship saves in other table assetentryassetcategoryrel and this method searches in assetentries_assetcategories
Steps to reproduce
- Start at Liferay 7.0.
- Create a new category.
- Create new web content with before category.
- Call AssetEntryLocalServiceUtil.getAssetCategoryAssetEntries with categoryId created before.
- The method returns a result.
- Upgrade Liferay to 7.1
- Create new web content with a category.
- Call AssetEntryLocalServiceUtil.getAssetCategoryAssetEntries with categoryId.
Expected behavior
The method returns all assetEntry with this category.
Actual behavior
The method only returns the assetEntry create before the upgrade.
- duplicates
-
LPS-99973 Add new methods to AssetEntryAssetCategoryRelLocalService
- Closed
-
LPS-89065 Remove table AssetEntries_AssetCategories and the related code
-
- Closed
-
- is caused by
-
LPS-76488 As an application developer I want to be able to specify a priority when assigning Assets to AssetCategory in order to make it possible to control the order of a list of assets with a given category
-
- Closed
-