Merge pull request #406 from josegonzalez/patch-1

Properly set the current action on CakeRequest when invoking Controller::setAction()
This commit is contained in:
José Lorenzo Rodríguez 2012-01-15 11:36:01 -08:00
commit 2c22d9accf

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