mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
FIX change action variable source to getViewer
Previously we were using the request to get the action parameter. However for custom URL structures and nested controllers, this won't work and causes template selection to break.
This commit is contained in:
parent
4c69d42bd2
commit
438fe02116
@ -154,7 +154,7 @@ class Controller extends RequestHandler implements TemplateGlobalProvider {
|
||||
Debug::message("Request handler $body->class object to $this->class controller;"
|
||||
. "rendering with template returned by $body->class::getViewer()");
|
||||
}
|
||||
$body = $body->getViewer($request->latestParam('Action'))->process($body);
|
||||
$body = $body->getViewer($this->getAction())->process($body);
|
||||
}
|
||||
|
||||
$this->response->setBody($body);
|
||||
|
Loading…
x
Reference in New Issue
Block a user