From bd46bcdd6ea8139dfba0b0d39649a897c86003bc Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 2 Nov 2023 09:57:50 +1300 Subject: [PATCH] Add a few more weights - price field page --- CRM/Price/Page/Option.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CRM/Price/Page/Option.php b/CRM/Price/Page/Option.php index ee633afe64..c2a6ad7763 100644 --- a/CRM/Price/Page/Option.php +++ b/CRM/Price/Page/Option.php @@ -71,28 +71,33 @@ class CRM_Price_Page_Option extends CRM_Core_Page { 'url' => 'civicrm/admin/price/field/option/edit', 'qs' => 'reset=1&action=update&oid=%%oid%%&fid=%%fid%%&sid=%%sid%%', 'title' => ts('Edit Price Option'), + 'weight' => -50, ], CRM_Core_Action::VIEW => [ 'name' => ts('View'), 'url' => 'civicrm/admin/price/field/option/edit', 'qs' => 'action=view&oid=%%oid%%', 'title' => ts('View Price Option'), + 'weight' => CRM_Core_Action::getLabel(CRM_Core_Action::VIEW), ], CRM_Core_Action::DISABLE => [ 'name' => ts('Disable'), 'ref' => 'crm-enable-disable', 'title' => ts('Disable Price Option'), + 'weight' => CRM_Core_Action::getLabel(CRM_Core_Action::DISABLE), ], CRM_Core_Action::ENABLE => [ 'name' => ts('Enable'), 'ref' => 'crm-enable-disable', 'title' => ts('Enable Price Option'), + 'weight' => CRM_Core_Action::getLabel(CRM_Core_Action::ENABLE), ], CRM_Core_Action::DELETE => [ 'name' => ts('Delete'), 'url' => 'civicrm/admin/price/field/option/edit', 'qs' => 'action=delete&oid=%%oid%%', 'title' => ts('Disable Price Option'), + 'weight' => CRM_Core_Action::getLabel(CRM_Core_Action::DELETE), ], ]; } -- 2.25.1