projects
/
WP-Plugins
/
glm-member-db-contacts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
249b18a
)
Jodie does not want any inactive contacts imported.
author
Steve Sutton
<steve@gaslightmedia.com>
Tue, 7 Aug 2018 20:02:12 +0000
(16:02 -0400)
committer
Steve 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
patch
|
blob
|
history
diff --git
a/models/admin/management/contacts.php
b/models/admin/management/contacts.php
index
8b39c5e
..
f66c714
100644
(file)
--- a/
models/admin/management/contacts.php
+++ b/
models/admin/management/contacts.php
@@
-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;
}