switch($option) {
case 'create':
-echo "HERER";
+
// Set reference type to Member
$refType = $this->config['ref_type_numb']['Member'];
$refTypeName = $this->config['ref_type'][$refType];
$contactInfo['fieldData']['password'] = $_REQUEST['password'];
$refType = $_REQUEST['ref_type'];
$refTypeName = $this->config['ref_type'][$refType];
+ $view = 'edit.html';
- // If addNew was unsuccessful, fall through to edit
+ // addNew was unsuccessful, fall through to edit
case 'edit':
{if $fromMemberMenu}
{include file='admin/member/header.html'}
-{else}
- {include file='admin/contacts/header.html'}
-{/if}
{if apply_filters('glm_members_permit_admin_member_contacts_add_contact', true)}
<a href="{$thisUrl}?page={$thisPage}&glm_action=contacts&member={$memberID}&option=create" class="button button-primary glm-button glm-right">Add New {$terms.term_member_cap} Contact</a>
<br clear="all">
{/if}
+{else}
+ {include file='admin/contacts/header.html'}
+{/if}
+
<form action="{$thisUrl}?page={$thisPage}" method="post" id="searchForm">
<input type="hidden" name="prevStart" value="{$prevStart}">
<input type="hidden" name="nextStart" value="{$nextStart}">