Browse Source

Properly set the current action on CakeRequest when invoking Controller::setAction()

Jose Diaz-Gonzalez 14 years ago
parent
commit
6046b8d013
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Cake/Controller/Controller.php

+ 1 - 1
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]);