From 778c43c52e72535f643c459103dcd4f9f5c22ae1 Mon Sep 17 00:00:00 2001 From: sant0s <919197+sant0s@users.noreply.github.com> Date: Mon, 30 Apr 2018 08:56:57 +0100 Subject: [PATCH] [#2171] Removed action context reset so action context items are available to templates --- framework/src/play/server/PlayHandler.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/framework/src/play/server/PlayHandler.java b/framework/src/play/server/PlayHandler.java index d41a8de0da..db3cdd97ed 100644 --- a/framework/src/play/server/PlayHandler.java +++ b/framework/src/play/server/PlayHandler.java @@ -19,7 +19,6 @@ import play.Invoker.InvocationContext; import play.Logger; import play.Play; -import play.data.binding.CachedBoundActionMethodArgs; import play.data.validation.Validation; import play.exceptions.PlayException; import play.exceptions.UnexpectedException; @@ -200,13 +199,6 @@ public boolean init() { Request.current.set(request); Response.current.set(response); - Scope.Params.current.set(request.params); - Scope.RenderArgs.current.set(null); - Scope.RouteArgs.current.set(null); - Scope.Session.current.set(null); - Scope.Flash.current.set(null); - CachedBoundActionMethodArgs.init(); - try { if (Play.mode == Play.Mode.DEV) { Router.detectChanges(Play.ctxPath);