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
fc72bc03
Unverified
Commit
fc72bc03
authored
1 year ago
by
Eileen McNaughton
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #27950 from eileenmcnaughton/566
Port weight notice fixes
parents
9f67c562
68b64cf3
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/Page/DedupeRules.php
+4
-1
4 additions, 1 deletion
CRM/Contact/Page/DedupeRules.php
CRM/Report/Page/Options.php
+4
-0
4 additions, 0 deletions
CRM/Report/Page/Options.php
with
8 additions
and
1 deletion
CRM/Contact/Page/DedupeRules.php
+
4
−
1
View file @
fc72bc03
...
...
@@ -52,6 +52,7 @@ class CRM_Contact_Page_DedupeRules extends CRM_Core_Page_Basic {
'url'
=>
'civicrm/contact/dedupefind'
,
'qs'
=>
'reset=1&rgid=%%id%%&action=preview'
,
'title'
=>
ts
(
'Use DedupeRule'
),
'weight'
=>
CRM_Core_Action
::
getWeight
(
CRM_Core_Action
::
VIEW
),
];
}
if
(
CRM_Core_Permission
::
check
(
'administer dedupe rules'
))
{
...
...
@@ -60,6 +61,7 @@ class CRM_Contact_Page_DedupeRules extends CRM_Core_Page_Basic {
'url'
=>
'civicrm/contact/deduperules'
,
'qs'
=>
'action=update&id=%%id%%'
,
'title'
=>
ts
(
'Edit DedupeRule'
),
'weight'
=>
CRM_Core_Action
::
getWeight
(
CRM_Core_Action
::
UPDATE
),
];
$links
[
CRM_Core_Action
::
DELETE
]
=
[
'name'
=>
ts
(
'Delete'
),
...
...
@@ -67,6 +69,7 @@ class CRM_Contact_Page_DedupeRules extends CRM_Core_Page_Basic {
'qs'
=>
'action=delete&id=%%id%%'
,
'extra'
=>
'onclick = "return confirm(\''
.
$deleteExtra
.
'\');"'
,
'title'
=>
ts
(
'Delete DedupeRule'
),
'weight'
=>
CRM_Core_Action
::
getWeight
(
CRM_Core_Action
::
DELETE
),
];
}
...
...
@@ -129,7 +132,7 @@ class CRM_Contact_Page_DedupeRules extends CRM_Core_Page_Basic {
// form all action links
$action
=
array_sum
(
array_keys
(
$this
->
links
()));
$links
=
self
::
links
();
$links
=
$this
->
links
();
if
(
$dao
->
is_reserved
)
{
unset
(
$links
[
CRM_Core_Action
::
DELETE
]);
...
...
This diff is collapsed.
Click to expand it.
CRM/Report/Page/Options.php
+
4
−
0
View file @
fc72bc03
...
...
@@ -94,22 +94,26 @@ class CRM_Report_Page_Options extends CRM_Core_Page_Basic {
'url'
=>
'civicrm/admin/report/register/'
.
self
::
$_gName
,
'qs'
=>
'action=update&id=%%id%%&reset=1'
,
'title'
=>
ts
(
'Edit %1'
,
[
1
=>
self
::
$_gLabel
]),
'weight'
=>
CRM_Core_Action
::
getWeight
(
CRM_Core_Action
::
UPDATE
),
],
CRM_Core_Action
::
DISABLE
=>
[
'name'
=>
ts
(
'Disable'
),
'ref'
=>
'crm-enable-disable'
,
'title'
=>
ts
(
'Disable %1'
,
[
1
=>
self
::
$_gLabel
]),
'weight'
=>
CRM_Core_Action
::
getWeight
(
CRM_Core_Action
::
DISABLE
),
],
CRM_Core_Action
::
ENABLE
=>
[
'name'
=>
ts
(
'Enable'
),
'ref'
=>
'crm-enable-disable'
,
'title'
=>
ts
(
'Enable %1'
,
[
1
=>
self
::
$_gLabel
]),
'weight'
=>
CRM_Core_Action
::
getWeight
(
CRM_Core_Action
::
ENABLE
),
],
CRM_Core_Action
::
DELETE
=>
[
'name'
=>
ts
(
'Delete'
),
'url'
=>
'civicrm/admin/report/register/'
.
self
::
$_gName
,
'qs'
=>
'action=delete&id=%%id%%&reset=1'
,
'title'
=>
ts
(
'Delete %1 Type'
,
[
1
=>
self
::
$_gLabel
]),
'weight'
=>
CRM_Core_Action
::
getWeight
(
CRM_Core_Action
::
DELETE
),
],
];
}
...
...
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