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:
abijah
2009-07-05 23:43:35 +00:00
parent c7d772be53
commit 6def9cbb02
8 changed files with 146 additions and 34 deletions

View File

@@ -177,7 +177,7 @@ CREATE TABLE `pmgr_contact_phones` (
`ext` VARCHAR(6) DEFAULT NULL,
`comment` VARCHAR(255) DEFAULT NULL,
KEY `number_key` (`phone`),
UNIQUE KEY `number_key` (`phone`, `ext`),
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
@@ -192,7 +192,7 @@ CREATE TABLE `pmgr_contact_emails` (
`email` VARCHAR(128) NOT NULL,
`comment` VARCHAR(255) DEFAULT NULL,
KEY `email_key` (`email`),
UNIQUE KEY `email_key` (`email`),
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
@@ -204,7 +204,7 @@ CREATE TABLE `pmgr_contact_emails` (
DROP TABLE IF EXISTS `pmgr_contacts_methods`;
CREATE TABLE `pmgr_contacts_methods` (
`contact_id` INT(10) UNSIGNED NOT NULL,
`method` ENUM('POST',
`method` ENUM('ADDRESS',
'PHONE',
'EMAIL')
NOT NULL,