From: Steve Sutton Date: Thu, 8 Sep 2016 20:41:31 +0000 (-0400) Subject: Update for the user id. X-Git-Tag: v1.1.0^2~1^2~7 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=c39b8df8c0dc3a55e454c8e3cd55e2a4138c46d6;p=WP-Plugins%2Fglm-member-db-leads.git Update for the user id. Need the wpUser for the correct user id. The other one is the member id. --- diff --git a/models/admin/dashboard/leads.php b/models/admin/dashboard/leads.php index 184c9a5..6286368 100644 --- a/models/admin/dashboard/leads.php +++ b/models/admin/dashboard/leads.php @@ -108,7 +108,7 @@ class GlmMembersAdmin_dashboard_leads // extends GlmDataEvents ) { // See if this member has a saved search. // If the do not then give message about it. - $user_id = $this->config['loggedInUser']['contactUser']['ID']; + $user_id = $this->config['loggedInUser']['wpUser']; if ( $user_id ) { $last_search = $this->wpdb->get_row( $this->wpdb->prepare( diff --git a/views/admin/dashboard/leads.html b/views/admin/dashboard/leads.html index ec9ea0d..b832082 100644 --- a/views/admin/dashboard/leads.html +++ b/views/admin/dashboard/leads.html @@ -11,6 +11,7 @@ Download {else}

Search for leads

+ Start searching for leads {/if}