Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 6.1.1 CE GA2, 6.1.20 EE GA2
-
Fix Version/s: 6.1.X EE, 6.2.0 CE M2
-
Component/s: Frameworks, Frameworks > Asset
-
Labels:
-
Branch Version/s:6.1.x
-
Backported to Branch:Committed
-
Similar Issues:
Description
Steps to reproduce
1. Create Asset Vocabulary
2. Create Categories for that Vocabulary
3. Create or update a user and assign categories
4. Save the record and notice the categories were not saved.
Saving Asset Tags works fine.

The problems seems to be caused by checking the actionRequest for a parameter named assetCategoryNames.
if (actionRequest.getParameter("assetCategoryNames") == null ) {
The actionRequest only contains actionCategoryIds. But changing the assetCategoryNames to assetCategoryIds in the above code is not enough because there may be several actionCategoryId parameters for different vocabularies.
This step seems to be unnecessary because the actionRequestIds will already be in the ServiceContext. Removing the whole block appears to work correctly.
Although the Asset Tags are working, the code checking the ActionRequest for the assetTagNames also seems unnecessary because the Service Context should already have that information.