From: Steve Sutton Date: Mon, 13 May 2019 12:53:13 +0000 (-0400) Subject: Updating lead import X-Git-Tag: v1.2.1^2~3 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=4833c6b8334986b0a8d4d871d985dbbd7e38e199;p=WP-Plugins%2Fglm-member-db-leads.git Updating lead import new fields for leads table. --- diff --git a/models/admin/management/leads.php b/models/admin/management/leads.php index 1ba1db8..0ff0fc0 100644 --- a/models/admin/management/leads.php +++ b/models/admin/management/leads.php @@ -754,34 +754,40 @@ class GlmMembersAdmin_management_leads // extends GlmDataLeadsManagement $this->wpdb->insert( GLM_MEMBERS_LEADS_PLUGIN_DB_PREFIX. 'lead_entry', array( - 'source_id' => $source_id, - 'lead_id' => $lead_id, - 'fname' => $contact['fname'], - 'lname' => $contact['lname'], - 'org' => $contact['company'], - 'addr1' => $contact['address'], - 'addr2' => $contact['address2'], - 'city' => $contact['city'], - 'state' => $contact['state'], - 'zip' => $contact['zip'], - 'phone' => $contact['phone'], - 'fax' => $contact['fax'], - 'date_submitted' => $contact['create_date'], + 'source_id' => $source_id, + 'lead_id' => $lead_id, + 'fname' => $contact['fname'], + 'lname' => $contact['lname'], + 'org' => $contact['company'], + 'addr1' => $contact['address'], + 'addr2' => $contact['address2'], + 'city' => $contact['city'], + 'state' => $contact['state'], + 'zip' => $contact['zip'], + 'phone' => $contact['phone'], + 'fax' => $contact['fax'], + 'date_submitted' => $contact['create_date'], + 'cleaned' => $contact['cleaned'], + 'cleaned_imported' => $contact['cleaned_imported'], + 'updated_date' => $contact['updated_date'] ), array( - '%d', - '%d', - '%s', - '%s', - '%s', - '%s', - '%s', - '%s', - '%s', - '%s', - '%s', - '%s', - '%s', + '%d', // source_id + '%d', // lead_id + '%s', // fname + '%s', // lname + '%s', // onrg + '%s', // addr1 + '%s', // addr2 + '%s', // city + '%s', // state + '%s', // zip + '%s', // phone + '%s', // fax + '%s', // date_submitted + '%s', // cleaned + '%s', // cleaned_imported + '%s', // updated_date ) ); $lead_entry_id = $this->wpdb->insert_id;