Workspace widget: remove "VRE" term when in a VRE and replace "_" with
blank for cutting long names
This commit is contained in:
Massimiliano Assante 2019-10-31 12:39:58 +01:00
parent 75ff8d3ec1
commit f97d33c9e5
1 changed files with 2 additions and 1 deletions

View File

@ -117,7 +117,8 @@ public class WorkspaceWidget extends MVCPortlet {
itemId = wsclient.getVreFolder("hl:accounting").getId();
itemsList = StorageHubServiceUtil.getItemChildren(authUser, itemId, itemId, start, offset);
String groupName = GroupLocalServiceUtil.getGroup(groupId).getName();
toSet = new Breadcrumb(itemId, groupName+"\'s VRE home");
groupName = groupName.replace("_", " ");
toSet = new Breadcrumb(itemId, groupName+" Folder");
request.getPortletSession().setAttribute(BREADCRUMB_ATTR, toSet, PortletSession.APPLICATION_SCOPE);
}
count = StorageHubServiceUtil.getItemChildrenCount(request, itemId);