mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-06-29 07:59:31 +02:00
FIX Forms run through FormHandler rather than Controllers now have access to current Request
This commit is contained in:
parent
a15c6887fc
commit
dc96862cac
|
@ -228,6 +228,7 @@ class FormRequestHandler extends RequestHandler
|
||||||
// First, try a handler method on the controller (has been checked for allowed_actions above already)
|
// First, try a handler method on the controller (has been checked for allowed_actions above already)
|
||||||
$controller = $this->form->getController();
|
$controller = $this->form->getController();
|
||||||
if ($controller && $controller->hasMethod($funcName)) {
|
if ($controller && $controller->hasMethod($funcName)) {
|
||||||
|
$controller->setRequest($request);
|
||||||
return $controller->$funcName($vars, $this->form, $request, $this);
|
return $controller->$funcName($vars, $this->form, $request, $this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user