From 7696cbc97a3f6d47b85d456ae43fd89d43d7fbc6 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 14 Apr 2017 11:20:56 -0400 Subject: [PATCH] Update for member info id This hopefully will fix issue with wrong member info id. --- models/front/fields/detail.php | 2 +- views/front/fields/list.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/models/front/fields/detail.php b/models/front/fields/detail.php index 17b2a2f..ac6015d 100644 --- a/models/front/fields/detail.php +++ b/models/front/fields/detail.php @@ -73,13 +73,13 @@ class GlmMembersFront_fields_detail extends GlmDataFieldsCustomFields WHERE mi.member = $member_info_id AND m.id = mi.member AND mt.id = m.member_type"; + $member_type = $wpdb->get_var($sql); /* $sql = " SELECT mt.name FROM " . GLM_MEMBERS_PLUGIN_DB_PREFIX . "member_type mt, " . GLM_MEMBERS_PLUGIN_DB_PREFIX . "members m WHERE m.id = $member_info_id AND mt.id = m.member_type"; - $member_type = $wpdb->get_var($sql); */ diff --git a/views/front/fields/list.html b/views/front/fields/list.html index bcc33e3..77e3111 100644 --- a/views/front/fields/list.html +++ b/views/front/fields/list.html @@ -17,4 +17,4 @@ {/if} -{/foreach} \ No newline at end of file +{/foreach} -- 2.17.1