Added tagById validation if node is a tag

This commit is contained in:
suneet.gupta
2023-02-13 12:05:43 +05:30
parent 14d4202726
commit c34791de34

View File

@@ -248,7 +248,7 @@ public class TagsImpl implements Tags
throw new EntityNotFoundException(nodeId);
}
PagingResults<Pair<NodeRef, String>> results = taggingService.getTags(nodeRef, Util.getPagingRequest(params.getPaging()));
PagingResults<Pair<NodeRef, String>> results = taggingService.getTags(nodeRef, Util.getPagingRequest(params.getPaging()));
Integer totalItems = results.getTotalResultCount().getFirst();
List<Pair<NodeRef, String>> page = results.getPage();
List<Tag> tags = new ArrayList<Tag>(page.size());