Fixed edit customer

This commit is contained in:
Karl Cordes 2011-06-16 13:39:30 +10:00
parent 751a194a83
commit f3037ac37e

View file

@ -84,8 +84,8 @@ class CustomersController extends AppController {
if ($this->Customer->saveAll($this->data)) {
$this->Session->setFlash(__('The Customer has been saved', true));
$id = $this->Customer->id;
debug($this->data);
//$this->redirect(array('action'=>'view/'.$id));
$this->redirect(array('action'=>'view/'.$id));
} else {
$this->Session->setFlash(__('The Customer could not be saved. Please, try again.', true));