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:
0914808
)
Update the member contact import script for primary contact flag
author
Steve Sutton
<steve@gaslightmedia.com>
Wed, 21 Jun 2017 13:37:51 +0000
(09:37 -0400)
committer
Steve Sutton
<steve@gaslightmedia.com>
Wed, 21 Jun 2017 13:37:51 +0000
(09:37 -0400)
Setting the primary contact to true for all imported contacts as they
are indeed the primary contacts.
models/admin/management/contacts.php
patch
|
blob
|
history
diff --git
a/models/admin/management/contacts.php
b/models/admin/management/contacts.php
index
195c964
..
95df0ec
100644
(file)
--- a/
models/admin/management/contacts.php
+++ b/
models/admin/management/contacts.php
@@
-618,6
+618,7
@@
class GlmMembersAdmin_management_contacts extends GlmDataContacts
GLM_MEMBERS_CONTACTS_PLUGIN_DB_PREFIX . 'contacts',
array(
'active' => true,
+ 'primary_contact' => true,
'access' => $this->config['access_numb']['NotDisplayedModerated'],
'fname' => $c['primary_contact_fname'],
'lname' => $c['primary_contact_lname'],
@@
-631,6
+632,7
@@
class GlmMembersAdmin_management_contacts extends GlmDataContacts
'ref_dest' => $memb['id']
),
array(
+ '%d',
'%d',
'%d',
'%s',