fixing syntax error with the require statement in the leads model. Setting up text...
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 18 Oct 2018 14:15:22 +0000 (10:15 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 18 Oct 2018 14:15:22 +0000 (10:15 -0400)
models/admin/dashboard/leads.php
setup/adminHooks.php

index 784901b..33e2474 100644 (file)
@@ -13,7 +13,7 @@
  * @version  0.1
  */
 
-require_once GLM_MEMBERS_EVENTS_PLUGIN_CLASS_PATH.'/data/dataEvents.php';
+require_once GLM_MEMBERS_LEADS_PLUGIN_CLASS_PATH.'/data/dataLeads.php';
 
 /**
  * Dashboard Class Model
index 061cf3c..e6f55fb 100644 (file)
@@ -84,12 +84,12 @@ add_filter(
         );
     
         $leadsIndexPage    = GLM_MEMBERS_LEADS_PLUGIN_ADMIN_URL . '?page=glm-members-admin-menu-leads-index&glm_action=edit';
-        $leadsTable        = GLM_MEMBERS_LEADS_PLUGIN_DB_PREFIX . "leads";
+        $leadsTable        = GLM_MEMBERS_LEADS_PLUGIN_DB_PREFIX . "lead_entry";
         $leadsEditPage     = GLM_MEMBERS_PLUGIN_ADMIN_MENU_URL_BASE.'leads-index&glm_action=list&option=edit';
         $leadsListPage     = GLM_MEMBERS_LEADS_PLUGIN_ADMIN_URL . '?page=glm-members-admin-menu-leads-list';
         $leadsRefLink      = GLM_MEMBERS_LEADS_PLUGIN_ADMIN_URL . '?page=glm-members-admin-menu-member&glm_action=index';
-        $content            = [
-            'title'         => 'Leads',
+        $content           = [
+            'title' => 'Leads',
             'components'    => [
                 [
                     'id'            => 'quickLinks',
@@ -145,7 +145,7 @@ add_filter(
                     'template'  => 'textSearch',
                     'entityID'  => 'event',
                     'table'     => $leadsTable,
-                    'fields'    => 'concat(fname," ",lname) as name,id,image,ref_dest',
+                    'fields'    => 'concat(fname," ",lname) as name,id',
                     'resultUrl' => $leadsEditPage.'&lead=',
                     'where'     => 'concat(fname," ",lname)'
                 ],