From: Steve Sutton Date: Thu, 9 Aug 2018 16:23:07 +0000 (-0400) Subject: Update company name and position from cf fields too. X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=3fcf5dac33b0fea71f9ac28051ccd440bac85d52;p=WP-Plugins%2Fglm-member-db-contacts.git Update company name and position from cf fields too. Grab the custom field data for org and title. --- diff --git a/models/admin/management/contacts.php b/models/admin/management/contacts.php index 4fb17d0..add7df7 100644 --- a/models/admin/management/contacts.php +++ b/models/admin/management/contacts.php @@ -185,6 +185,18 @@ class GlmMembersAdmin_management_contacts extends GlmDataContacts FROM " . GLM_MEMBERS_FIELDS_PLUGIN_DB_PREFIX . "custom_field_data WHERE field_id = 16 AND entity_id = C.id + ), + org = ( + SELECT field_data + FROM " . GLM_MEMBERS_FIELDS_PLUGIN_DB_PREFIX . "custom_field_data + WHERE field_id = 12 + AND entity_id = C.id + ), + title = ( + SELECT field_data + FROM " . GLM_MEMBERS_FIELDS_PLUGIN_DB_PREFIX . "custom_field_data + WHERE field_id = 7 + AND entity_id = C.id )" ); $result .= '

custom: ' . $custom . '

';