Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
jumarub committed Dec 16, 2024
1 parent d7fd8d3 commit 740a00c
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,16 +217,15 @@ public JSONObject getTagsPaginatedByPrefixInLabel(EntityView view, Map<String, O

@EntityCustomAction(action = "getTagsByItemId", viewKey = EntityView.VIEW_LIST)
public JSONObject getTagsByItemId(EntityView view, Map<String, Object> params) {
try {
WrappedParams wp = new WrappedParams(params);
String itemId = wp.getString("itemId");
String siteId = wp.getString("siteId");
WrappedParams wp = new WrappedParams(params);
String itemId = wp.getString("itemId");
String siteId = wp.getString("siteId");

try {
List<Tag> tagList = tagService().getAssociatedTagsForItem(siteId, itemId);

return buildtagJsonOject(tagList, tagList.size());
} catch (Exception e) {
log.error("Error calling getTagsByItemId:", e);
log.error("Could not get tag with itemId={} in site={}, {}", itemId, siteId, e);
return null;
}
}
Expand Down

0 comments on commit 740a00c

Please sign in to comment.