Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CiviCRM Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
CiviCRM Core
Commits
4f65796b
Unverified
Commit
4f65796b
authored
7 months ago
by
colemanw
Committed by
GitHub
7 months ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #30967 from mlutfy/ui54
user-interface#54
Move Contact Delete under the Actions menu
parents
680f0d0e
8f0e4918
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CRM/Contact/BAO/Contact.php
+14
-0
14 additions, 0 deletions
CRM/Contact/BAO/Contact.php
templates/CRM/Contact/Page/View/Summary.tpl
+0
-8
0 additions, 8 deletions
templates/CRM/Contact/Page/View/Summary.tpl
with
14 additions
and
8 deletions
CRM/Contact/BAO/Contact.php
+
14
−
0
View file @
4f65796b
...
...
@@ -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'
]
=
[
...
...
This diff is collapsed.
Click to expand it.
templates/CRM/Contact/Page/View/Summary.tpl
+
0
−
8
View file @
4f65796b
...
...
@@ -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"
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment