FIX Forms run through FormHandler rather than Controllers now have access to current Request

This commit is contained in:
Daniel Hensby 2018-01-15 13:08:43 +00:00
parent a15c6887fc
commit dc96862cac
No known key found for this signature in database
GPG Key ID: B00D1E9767F0B06E

View File

@ -228,6 +228,7 @@ class FormRequestHandler extends RequestHandler
// First, try a handler method on the controller (has been checked for allowed_actions above already)
$controller = $this->form->getController();
if ($controller && $controller->hasMethod($funcName)) {
$controller->setRequest($request);
return $controller->$funcName($vars, $this->form, $request, $this);
}