From a432c2c77f770726b237731946dc42f964b39fa8 Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Mon, 16 May 2016 11:52:28 -0400 Subject: [PATCH] Fixed missing add new member contact button --- models/admin/contacts/index.php | 7 ++++++- views/admin/contacts/index.html | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/models/admin/contacts/index.php b/models/admin/contacts/index.php index 22fe460..284d4fe 100644 --- a/models/admin/contacts/index.php +++ b/models/admin/contacts/index.php @@ -189,7 +189,7 @@ class GlmMembersAdmin_contacts_index extends GlmDataContacts switch($option) { case 'create': - +echo "HERER"; // Set reference type to Member $refType = $this->config['ref_type_numb']['Member']; $refTypeName = $this->config['ref_type'][$refType]; @@ -199,6 +199,9 @@ class GlmMembersAdmin_contacts_index extends GlmDataContacts require_once(GLM_MEMBERS_CONTACTS_PLUGIN_LIB_PATH.'/EasyPassword/EasyPassword.php'); $EasyPassword = new EasyPassword(); $contactInfo['fieldData']['password'] = $EasyPassword->generateEasyPassword('firstlast'); + + $view = 'edit.html'; + break; case 'addNew': @@ -306,6 +309,8 @@ class GlmMembersAdmin_contacts_index extends GlmDataContacts // Check for new cities being submitted $this->checkNewCities($contactID); + $view = 'edit.html'; + break; } diff --git a/views/admin/contacts/index.html b/views/admin/contacts/index.html index 95af0cb..8f84fa8 100644 --- a/views/admin/contacts/index.html +++ b/views/admin/contacts/index.html @@ -4,6 +4,12 @@ {include file='admin/contacts/header.html'} {/if} + {if apply_filters('glm_members_permit_admin_member_contacts_add_contact', true)} + Add New {$terms.term_member_cap} Contact +
+
+ {/if} +
-- 2.17.1