From: Chuck Scott Date: Mon, 16 May 2016 15:52:28 +0000 (-0400) Subject: Fixed missing add new member contact button X-Git-Tag: v1.0.8^2~4 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=a432c2c77f770726b237731946dc42f964b39fa8;p=WP-Plugins%2Fglm-member-db-contacts.git Fixed missing add new member contact button --- 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} +