From 249b18ac0701fa5ba5e4c75b523a5df1e3702839 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Tue, 7 Aug 2018 15:10:41 -0400 Subject: [PATCH] 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. --- models/admin/management/contacts.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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'], -- 2.17.1