From be551b7a01e135f51d87604cc324e30881e9453b Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Thu, 2 Jun 2016 13:36:33 -0400 Subject: [PATCH] Fixed problems with logged in member users not being able to create and delete contacts --- views/admin/contacts/edit.html | 4 ++++ views/admin/contacts/index.html | 17 ++++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/views/admin/contacts/edit.html b/views/admin/contacts/edit.html index dca4984..cd2e216 100644 --- a/views/admin/contacts/edit.html +++ b/views/admin/contacts/edit.html @@ -615,7 +615,11 @@ $("#deleteContactDialog").dialog("close"); }); $('#deleteContactSubmit').click( function() { +{if $fromMemberMenu} window.location.replace("{$thisUrl}?page={$thisPage}&glm_action=contacts&member={$memberID}&option=delete&contact={$contactID}"); +{else} + window.location.replace("{$thisUrl}?page=glm-members-admin-menu-contacts&glm_action=index&option=delete&contact={$contactID}"); +{/if} }); // Set masking for phone number fields - see http://digitalbush.com/projects/masked-input-plugin/ diff --git a/views/admin/contacts/index.html b/views/admin/contacts/index.html index 52ad51a..2094455 100644 --- a/views/admin/contacts/index.html +++ b/views/admin/contacts/index.html @@ -1,16 +1,20 @@ {if $fromMemberMenu} {include file='admin/member/header.html'} - {if apply_filters('glm_members_permit_admin_member_contacts_add_contact', true)} - Add New {$terms.term_member_cap} Contact -
-
- {/if} - {else} {include file='admin/contacts/header.html'} {/if} +{if apply_filters('glm_members_permit_admin_member_contacts_add_contact', true)} + {if $fromMemberMenu} + Add New {$terms.term_member_cap} Contact + {else} + Add New {$terms.term_member_cap} Contact + {/if} +
+
+{/if} +
@@ -22,7 +26,6 @@ Text Search: -

Contacts

-- 2.17.1