Finished implementation of contact edit. This is now saving everything to the database. I hope to now leverage it for a new contact. This checkin includes a bit of code in the sitelink2pmgr script that sets the customer display name. It should have been checked in several revisions ago.
git-svn-id: file:///svn-source/pmgr/branches/invoice_receipt_20090629@217 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
25
site/models/contacts_method.php
Normal file
25
site/models/contacts_method.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
class ContactsMethod extends AppModel {
|
||||
var $primaryKey = false;
|
||||
|
||||
var $belongsTo = array(
|
||||
'Contact',
|
||||
'ContactAddress' => array(
|
||||
'foreignKey' => 'method_id',
|
||||
'conditions' => "method = 'ADDRESS'",
|
||||
//'unique' => true,
|
||||
),
|
||||
'ContactPhone' => array(
|
||||
'foreignKey' => 'method_id',
|
||||
'conditions' => "method = 'PHONE'",
|
||||
//'unique' => true,
|
||||
),
|
||||
'ContactEmail' => array(
|
||||
'foreignKey' => 'method_id',
|
||||
'conditions' => "method = 'EMAIL'",
|
||||
//'unique' => true,
|
||||
),
|
||||
);
|
||||
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user