Update for the user id.
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 8 Sep 2016 20:41:31 +0000 (16:41 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 8 Sep 2016 20:41:31 +0000 (16:41 -0400)
Need the wpUser for the correct user id.
The other one is the member id.

models/admin/dashboard/leads.php
views/admin/dashboard/leads.html

index 184c9a5..6286368 100644 (file)
@@ -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(
index ec9ea0d..b832082 100644 (file)
@@ -11,6 +11,7 @@
             <a href="{$ajaxUrl}?action=glm_members_admin_ajax&glm_action=csvExport">Download</a>
             {else}
             <h3>Search for leads</h3>
+            <a href="{$thisUrl}?page=glm-members-admin-menu-leads-index">Start searching for leads</a>
             {/if}
         </div>
     </div>