From f348af7e0a373db7fa3ac865a3edb8a21fa8c16a Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Thu, 18 Oct 2018 10:15:22 -0400 Subject: [PATCH] fixing syntax error with the require statement in the leads model. Setting up text search for the leads widget --- models/admin/dashboard/leads.php | 2 +- setup/adminHooks.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/models/admin/dashboard/leads.php b/models/admin/dashboard/leads.php index 784901b..33e2474 100644 --- a/models/admin/dashboard/leads.php +++ b/models/admin/dashboard/leads.php @@ -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 diff --git a/setup/adminHooks.php b/setup/adminHooks.php index 061cf3c..e6f55fb 100644 --- a/setup/adminHooks.php +++ b/setup/adminHooks.php @@ -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)' ], -- 2.17.1