Removed lingering debug prints
git-svn-id: file:///svn-source/pmgr/branches/invoice_receipt_20090629/site@248 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -216,7 +216,6 @@ class Customer extends AppModel {
|
|||||||
if (!$data['Customer']['name']) {
|
if (!$data['Customer']['name']) {
|
||||||
$this->Contact->recursive = -1;
|
$this->Contact->recursive = -1;
|
||||||
$pcontact = $this->Contact->read(null, $data['Customer']['primary_contact_id']);
|
$pcontact = $this->Contact->read(null, $data['Customer']['primary_contact_id']);
|
||||||
pr($pcontact);
|
|
||||||
$data['Customer']['name'] = $pcontact['Contact']['display_name'];
|
$data['Customer']['name'] = $pcontact['Contact']['display_name'];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -247,8 +246,6 @@ class Customer extends AppModel {
|
|||||||
|
|
||||||
// Go through each entry of this customer method
|
// Go through each entry of this customer method
|
||||||
foreach ($data['Contact'] AS &$contact) {
|
foreach ($data['Contact'] AS &$contact) {
|
||||||
pr(compact('contact'));
|
|
||||||
|
|
||||||
// Update the ContactsCustomer to reflect the appropriate IDs
|
// Update the ContactsCustomer to reflect the appropriate IDs
|
||||||
$contact['ContactsCustomer']['customer_id'] = $id;
|
$contact['ContactsCustomer']['customer_id'] = $id;
|
||||||
$contact['ContactsCustomer']['contact_id'] = $contact['id'];
|
$contact['ContactsCustomer']['contact_id'] = $contact['id'];
|
||||||
|
|||||||
Reference in New Issue
Block a user