Jodie does not want any inactive contacts imported.
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 7 Aug 2018 20:02:12 +0000 (16:02 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 7 Aug 2018 20:03:37 +0000 (16:03 -0400)
If the member is inactive then don't import contact.

models/admin/management/contacts.php

index 8b39c5e..f66c714 100644 (file)
@@ -723,7 +723,8 @@ class GlmMembersAdmin_management_contacts extends GlmDataContacts
             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 != '';
+             WHERE member_login != ''
+               AND active
         ";
         try {
             $oldContacts = $this->dbh->query($sql)->fetchAll(PDO::FETCH_ASSOC);
@@ -775,7 +776,7 @@ class GlmMembersAdmin_management_contacts extends GlmDataContacts
             }
 
             // Check that we have a username for this contact
-            if (trim($c['member_login']) == '') {
+            if (trim($c['member_login']) == '' ) {
                 $okToImport = false;
             }