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

This commit is contained in:
Jose Diaz-Gonzalez 2012-01-15 14:32:09 -05:00
parent 533feea2b1
commit 6046b8d013

View file

@ -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]);