diff --git a/lib/Cake/Console/Templates/default/actions/controller_actions.ctp b/lib/Cake/Console/Templates/default/actions/controller_actions.ctp index 928ec94af..e3df02186 100644 --- a/lib/Cake/Console/Templates/default/actions/controller_actions.ctp +++ b/lib/Cake/Console/Templates/default/actions/controller_actions.ctp @@ -56,7 +56,7 @@ if ($this->->save($this->request->data)) { $this->Session->setFlash(__('The has been saved')); - $this->redirect(array('action' => 'index')); + return $this->redirect(array('action' => 'index')); $this->flash(__(' saved.'), array('action' => 'index')); @@ -99,7 +99,7 @@ if ($this->->save($this->request->data)) { $this->Session->setFlash(__('The has been saved')); - $this->redirect(array('action' => 'index')); + return $this->redirect(array('action' => 'index')); $this->flash(__('The has been saved.'), array('action' => 'index')); @@ -145,7 +145,7 @@ if ($this->->delete()) { $this->Session->setFlash(__(' deleted')); - $this->redirect(array('action' => 'index')); + return $this->redirect(array('action' => 'index')); $this->flash(__(' deleted'), array('action' => 'index')); @@ -155,5 +155,5 @@ $this->flash(__(' was not deleted'), array('action' => 'index')); - $this->redirect(array('action' => 'index')); + return $this->redirect(array('action' => 'index')); }