From 6046b8d01378b5724602f66aaef175ca229b8f52 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 15 Jan 2012 14:32:09 -0500 Subject: [PATCH] Properly set the current action on CakeRequest when invoking Controller::setAction() --- lib/Cake/Controller/Controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Controller/Controller.php b/lib/Cake/Controller/Controller.php index 61d18585a..c75f5c5fe 100644 --- a/lib/Cake/Controller/Controller.php +++ b/lib/Cake/Controller/Controller.php @@ -804,7 +804,7 @@ class Controller extends Object { * @return mixed Returns the return value of the called action */ public function setAction($action) { - $this->request->action = $action; + $this->request->params['action'] = $action; $this->view = $action; $args = func_get_args(); unset($args[0]);