This commit is contained in:
Massimiliano Assante 2021-04-06 11:28:05 +02:00
parent aed9af164b
commit 7541e723a4
2 changed files with 3 additions and 3 deletions

View File

@ -149,9 +149,9 @@ public class StorageHubServiceUtil {
* @param request * @param request
* @return the VRE Folders Id * @return the VRE Folders Id
*/ */
public static String getVREFoldersId(HttpServletRequest request) { public static String getVREFoldersId(String groupId) {
String toReturn = ""; String toReturn = "";
String currentContext = PortalContext.getConfiguration().getCurrentScope(request); String currentContext = PortalContext.getConfiguration().getCurrentScope(groupId);
_log.debug("getVREFoldersId, context="+currentContext); _log.debug("getVREFoldersId, context="+currentContext);
ScopeProvider.instance.set(currentContext); ScopeProvider.instance.set(currentContext);
try { try {

View File

@ -42,7 +42,7 @@
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<td> <td>
<%pageContext.setAttribute("vreFoldersId", StorageHubServiceUtil.getVREFoldersId(request));%> <%pageContext.setAttribute("vreFoldersId", StorageHubServiceUtil.getVREFoldersId(PortalUtil.getScopeGroupId(request)));%>
<c:if test="${not empty vreFoldersId}"> <c:if test="${not empty vreFoldersId}">
<div id="vreFoldersDiv" class="ws-recents"> <div id="vreFoldersDiv" class="ws-recents">
<a <a