Moved the contact save logic into the model and out of the controller.

git-svn-id: file:///svn-source/pmgr/branches/invoice_receipt_20090629@230 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-07-06 17:25:05 +00:00
parent fbeed43e61
commit cba8e16be7
3 changed files with 107 additions and 68 deletions

View File

@@ -239,7 +239,7 @@ class Customer extends AppModel {
/* $this->ContactsCustomer->deleteAll */
/* (array('customer_id' => $id), false); */
// At this point, since we've saved data to contact,
// At this point, since we've saved data to customer,
// we'll proceed forward as much as possible, even
// if we encounter an error. For now, we'll assume
// the operation will succeed.