From: Anthony Talarico Date: Thu, 18 Oct 2018 14:15:22 +0000 (-0400) Subject: fixing syntax error with the require statement in the leads model. Setting up text... X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=f348af7e0a373db7fa3ac865a3edb8a21fa8c16a;p=WP-Plugins%2Fglm-member-db-leads.git fixing syntax error with the require statement in the leads model. Setting up text search for the leads widget --- 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)' ],