Skip to content
Snippets Groups Projects
Unverified Commit 4f65796b authored by colemanw's avatar colemanw Committed by GitHub
Browse files

Merge pull request #30967 from mlutfy/ui54

user-interface#54 Move Contact Delete under the Actions menu
parents 680f0d0e 8f0e4918
Branches
Tags
No related merge requests found
......@@ -2992,6 +2992,20 @@ LEFT JOIN civicrm_email ON ( civicrm_contact.id = civicrm_email.contact_id )
];
}
if (CRM_Core_Permission::check('delete contacts')) {
$menu['otherActions']['delete'] = [
'title' => ts('Delete'),
'description' => ts('Delete Contact'),
'weight' => 90,
'ref' => 'crm-contact-delete',
'key' => 'delete',
'tab' => 'delete',
'class' => 'delete',
'href' => CRM_Utils_System::url('civicrm/contact/view/delete', "reset=1&delete=1&id=$contactId"),
'icon' => 'crm-i fa-trash',
];
}
$uid = CRM_Core_BAO_UFMatch::getUFId($contactId);
if ($uid) {
$menu['otherActions']['user-record'] = [
......
......@@ -66,14 +66,6 @@
{/if}
{/crmPermission}
{crmPermission has='delete contacts'}
<li class="crm-contact-delete">
{crmButton p='civicrm/contact/view/delete' q="reset=1&delete=1&cid=$contactId" class="delete" icon="trash"}
{ts}Delete Contact{/ts}
{/crmButton}
</li>
{/crmPermission}
{* Previous and Next contact navigation when accessing contact summary from search results. *}
{if $nextPrevError}
<li class="crm-next-action">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment