From: Steve Sutton Date: Wed, 17 Oct 2018 17:55:53 +0000 (-0400) Subject: Update for the leads plugin to add new lead. X-Git-Tag: v1.2.0^2~6 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=2ede09521a50298d3e373a9ce9a31d91697c3f2d;p=WP-Plugins%2Fglm-member-db-leads.git Update for the leads plugin to add new lead. Testing adding lead without any leads for some reason wasn't showing form. When creating the newEntry status wasn't being set. Looking for status or adding new lead to show the form. --- diff --git a/models/admin/leads/index.php b/models/admin/leads/index.php index 9ce4e5f..6b32a12 100644 --- a/models/admin/leads/index.php +++ b/models/admin/leads/index.php @@ -751,6 +751,7 @@ class GlmMembersAdmin_leads_index extends GlmDataLeadEntry break; } $entry = $this->newEntry(); + // echo '
$entry: ' . print_r( $entry, true ) . '
'; $addingLead = true; $lead_interests = array(); diff --git a/views/admin/leads/edit.html b/views/admin/leads/edit.html index 4bb15bd..adac773 100644 --- a/views/admin/leads/edit.html +++ b/views/admin/leads/edit.html @@ -7,7 +7,7 @@ Back To Search -{if $entry.status} +{if $entry.status || $addingLead}
{if !$addingLead}