From 6f500b8b677c2116b1b6b4d690c8c8ce8ab1c81c Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Fri, 15 Sep 2023 11:54:44 +1200 Subject: [PATCH] Fix missing weights on Custom data screen (notices) --- CRM/Custom/Page/Group.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CRM/Custom/Page/Group.php b/CRM/Custom/Page/Group.php index 0c336c4901..231d6fea62 100644 --- a/CRM/Custom/Page/Group.php +++ b/CRM/Custom/Page/Group.php @@ -48,34 +48,40 @@ class CRM_Custom_Page_Group extends CRM_Core_Page { 'url' => 'civicrm/admin/custom/group/field', 'qs' => 'reset=1&action=browse&gid=%%id%%', 'title' => ts('View and Edit Custom Fields'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::BROWSE), ], CRM_Core_Action::PREVIEW => [ 'name' => ts('Preview'), 'url' => 'civicrm/admin/custom/group/preview', 'qs' => 'reset=1&gid=%%id%%', 'title' => ts('Preview Custom Data Set'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::PREVIEW), ], CRM_Core_Action::UPDATE => [ 'name' => ts('Settings'), 'url' => 'civicrm/admin/custom/group/edit', 'qs' => 'action=update&reset=1&id=%%id%%', 'title' => ts('Edit Custom Set'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::UPDATE), ], CRM_Core_Action::DISABLE => [ 'name' => ts('Disable'), 'ref' => 'crm-enable-disable', 'title' => ts('Disable Custom Set'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::DISABLE), ], CRM_Core_Action::ENABLE => [ 'name' => ts('Enable'), 'ref' => 'crm-enable-disable', 'title' => ts('Enable Custom Set'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::ENABLE), ], CRM_Core_Action::DELETE => [ 'name' => ts('Delete'), 'url' => 'civicrm/admin/custom/group/delete', 'qs' => 'reset=1&id=%%id%%', 'title' => ts('Delete Custom Set'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::DELETE), ], ]; } -- 2.25.1