From 92798d3c4f1c85e02ac2620723acde5e5f3a29b6 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 21 Sep 2023 21:49:25 +1200 Subject: [PATCH] Add weights on badge layout links --- CRM/Badge/Page/Layout.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CRM/Badge/Page/Layout.php b/CRM/Badge/Page/Layout.php index 6fb0068d52..d0f31935e5 100644 --- a/CRM/Badge/Page/Layout.php +++ b/CRM/Badge/Page/Layout.php @@ -51,22 +51,26 @@ class CRM_Badge_Page_Layout extends CRM_Core_Page_Basic { 'url' => 'civicrm/admin/badgelayout', 'qs' => 'action=update&id=%%id%%&reset=1', 'title' => ts('Edit Badge Layout'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::UPDATE), ], CRM_Core_Action::DISABLE => [ 'name' => ts('Disable'), 'ref' => 'crm-enable-disable', 'title' => ts('Disable Badge Layout'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::ENABLE), ], CRM_Core_Action::ENABLE => [ 'name' => ts('Enable'), 'ref' => 'crm-enable-disable', 'title' => ts('Enable Badge Layout'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::DISABLE), ], CRM_Core_Action::DELETE => [ 'name' => ts('Delete'), 'url' => 'civicrm/admin/badgelayout', 'qs' => 'action=delete&id=%%id%%', 'title' => ts('Delete Badge Layout'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::DELETE), ], ]; } -- 2.25.1