Permalink
Browse files

Properly set the current action on CakeRequest when invoking Controll…

…er::setAction()
  • Loading branch information...
1 parent 533feea commit 6046b8d01378b5724602f66aaef175ca229b8f52 @josegonzalez josegonzalez committed Jan 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Controller/Controller.php
@@ -804,7 +804,7 @@ public function set($one, $two = null) {
* @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]);

0 comments on commit 6046b8d

Please sign in to comment.