Skip to content
Snippets Groups Projects
Unverified Commit fc72bc03 authored by Eileen McNaughton's avatar Eileen McNaughton Committed by GitHub
Browse files

Merge pull request #27950 from eileenmcnaughton/566

Port weight notice fixes
parents 9f67c562 68b64cf3
Branches
Tags
No related merge requests found
......@@ -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]);
......
......@@ -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),
],
];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment