From 2ede09521a50298d3e373a9ce9a31d91697c3f2d Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Wed, 17 Oct 2018 13:55:53 -0400 Subject: [PATCH] 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. --- models/admin/leads/index.php | 1 + views/admin/leads/edit.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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} -- 2.17.1