Update the member contact import script for primary contact flag
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 21 Jun 2017 13:37:51 +0000 (09:37 -0400)
committerSteve 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

index 195c964..95df0ec 100644 (file)
@@ -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',