Skip to content

Commit

Permalink
Bug #13453: fixing a technical error with built-in look when the body…
Browse files Browse the repository at this point in the history
… content is loaded whereas the user session has just ending.
  • Loading branch information
SilverYoCha committed Jan 11, 2024
1 parent d3bdf9f commit 4be3463
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions core-war/src/main/webapp/admin/jsp/silverpeas-body-part.jsp
Expand Up @@ -37,15 +37,17 @@
<fmt:setLocale value="${sessionScope['SilverSessionController'].favoriteLanguage}"/>
<view:setBundle basename="org.silverpeas.lookSilverpeasV5.multilang.lookBundle"/>

<c:set var="helper" value="<%=LookHelper.getLookHelper(session)%>"/>
<c:if test="${helper != null}">
<jsp:useBean id="helper" type="org.silverpeas.core.web.look.LookHelper"/>

<%
String strGoToNew = (String) session.getAttribute("gotoNew");
String spaceId = request.getParameter("SpaceId");
String subSpaceId = request.getParameter("SubSpaceId");
String componentId = request.getParameter("ComponentId");
String login = request.getParameter("Login");
LookHelper helper = LookHelper.getLookHelper(session);
String navigationWidth = helper.getSettings("domainsBarFramesetWidth", "255") + "px";
StringBuilder paramsForDomainsBar = new StringBuilder().append("{");
Expand Down Expand Up @@ -140,4 +142,6 @@ session.removeAttribute("RedirectToSpaceId");
spLayout.getBody().getNavigation().load(<%=paramsForDomainsBar.append('}')%>);
});
})();
</script>
</script>

</c:if>

0 comments on commit 4be3463

Please sign in to comment.