Skip to content

Commit 784e114

Browse files
committed
BroadleafCommerce#935 - If a sandbox is being cleared from scope, we need to reset the SystemTime to not use a hard-coded time in that same request.
1 parent f2c5ef1 commit 784e114

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

common/src/main/java/org/broadleafcommerce/common/web/BroadleafSandBoxResolverImpl.java

+1
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ public SandBox resolveSandBox(WebRequest request, Site site) {
138138
request.removeAttribute(SANDBOX_DATE_TIME_VAR, WebRequest.SCOPE_GLOBAL_SESSION);
139139
request.removeAttribute(SANDBOX_ID_VAR, WebRequest.SCOPE_GLOBAL_SESSION);
140140
}
141+
SystemTime.resetLocalTimeSource();
141142
}
142143
if (sandboxId != null) {
143144
if (previousSandBoxId != null && !previousSandBoxId.equals(sandboxId)) {

0 commit comments

Comments
 (0)