From: Steve Sutton Date: Tue, 7 Aug 2018 19:10:41 +0000 (-0400) Subject: Importing contact needs the active flag set from old database. X-Git-Tag: v1.1.12^2~7 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=249b18ac0701fa5ba5e4c75b523a5df1e3702839;p=WP-Plugins%2Fglm-member-db-contacts.git Importing contact needs the active flag set from old database. Need to look at the old active field and setup the new active flag the same. --- diff --git a/models/admin/management/contacts.php b/models/admin/management/contacts.php index 4189a02..8b39c5e 100644 --- a/models/admin/management/contacts.php +++ b/models/admin/management/contacts.php @@ -720,7 +720,7 @@ class GlmMembersAdmin_management_contacts extends GlmDataContacts // Get list of contacts from specified database table $sql = " - SELECT member_id, member_name, member_login, member_passwd, process_email, + SELECT active, member_id, member_name, member_login, member_passwd, process_email, primary_contact, primary_contact_fname, primary_contact_lname FROM $schema.member WHERE member_login != ''; @@ -859,8 +859,8 @@ class GlmMembersAdmin_management_contacts extends GlmDataContacts $this->wpdb->insert( GLM_MEMBERS_CONTACTS_PLUGIN_DB_PREFIX . 'contacts', array( - 'active' => true, - 'primary_contact' => true, + 'active' => $c['active'], + 'primary_contact' => $c['active'], 'access' => $this->config['access_numb']['NotDisplayedModerated'], 'fname' => $c['primary_contact_fname'], 'lname' => $c['primary_contact_lname'],