WW-5382 Fix stale bootstrap context on ActionContext

This commit is contained in:
Kusal Kithul-Godage
2023-12-31 00:30:15 +11:00
parent 15acd72d24
commit 2024d83177
@@ -325,12 +325,8 @@ public class DefaultConfiguration implements Configuration {
}
protected ActionContext setContext(Container cont) {
ActionContext context = ActionContext.getContext();
if (context == null) {
ValueStack vs = cont.getInstance(ValueStackFactory.class).createValueStack();
context = ActionContext.of(vs.getContext()).bind();
}
return context;
ValueStack vs = cont.getInstance(ValueStackFactory.class).createValueStack();
return ActionContext.of(vs.getContext()).bind();
}
protected Container createBootstrapContainer(List<ContainerProvider> providers) {