Fixed edit customer
This commit is contained in:
parent
751a194a83
commit
f3037ac37e
|
|
@ -84,8 +84,8 @@ class CustomersController extends AppController {
|
||||||
if ($this->Customer->saveAll($this->data)) {
|
if ($this->Customer->saveAll($this->data)) {
|
||||||
$this->Session->setFlash(__('The Customer has been saved', true));
|
$this->Session->setFlash(__('The Customer has been saved', true));
|
||||||
$id = $this->Customer->id;
|
$id = $this->Customer->id;
|
||||||
debug($this->data);
|
|
||||||
//$this->redirect(array('action'=>'view/'.$id));
|
$this->redirect(array('action'=>'view/'.$id));
|
||||||
} else {
|
} else {
|
||||||
$this->Session->setFlash(__('The Customer could not be saved. Please, try again.', true));
|
$this->Session->setFlash(__('The Customer could not be saved. Please, try again.', true));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue