mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX Pass request to dummy controller before calling init
This commit is contained in:
parent
518f798ff8
commit
873873dc30
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user