From 873873dc303ce2041aa23e365464133a359e1561 Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Wed, 15 Aug 2018 10:14:25 +1200 Subject: [PATCH] FIX Pass request to dummy controller before calling init --- src/Security/Security.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Security/Security.php b/src/Security/Security.php index e3952c056..2df20eada 100644 --- a/src/Security/Security.php +++ b/src/Security/Security.php @@ -577,8 +577,8 @@ class Security extends Controller implements TemplateGlobalProvider $holderPage->ID = -1 * random_int(1, 10000000); $controller = ModelAsController::controller_for($holderPage); - $controller->doInit(); $controller->setRequest($this->getRequest()); + $controller->doInit(); return $controller; }