FIX Pass request to dummy controller before calling init

This commit is contained in:
Robbie Averill 2018-08-15 10:14:25 +12:00
parent 518f798ff8
commit 873873dc30

View File

@ -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;
}