From 888b7b0c2dfd9f3f0d963c02b12f78cf00317e97 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 19 Sep 2023 11:30:12 +1200 Subject: [PATCH] Add a couple more weights - legacy searches --- CRM/Contribute/Page/ContributionPage.php | 3 +-- ext/legacycustomsearches/CRM/Contact/Selector/Custom.php | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CRM/Contribute/Page/ContributionPage.php b/CRM/Contribute/Page/ContributionPage.php index c0a6389e82..0c455ff5c6 100644 --- a/CRM/Contribute/Page/ContributionPage.php +++ b/CRM/Contribute/Page/ContributionPage.php @@ -112,8 +112,7 @@ class CRM_Contribute_Page_ContributionPage extends CRM_Core_Page { 'url' => $urlString . 'settings', 'qs' => $urlParams, 'uniqueName' => 'settings', - // This needs to be lower than Membership Settings since otherwise the order doesn't make sense - 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::VIEW), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::ADD), ], CRM_Core_Action::UPDATE => [ 'name' => ts('Contribution Amounts'), diff --git a/ext/legacycustomsearches/CRM/Contact/Selector/Custom.php b/ext/legacycustomsearches/CRM/Contact/Selector/Custom.php index 7170f7e821..06385ec856 100644 --- a/ext/legacycustomsearches/CRM/Contact/Selector/Custom.php +++ b/ext/legacycustomsearches/CRM/Contact/Selector/Custom.php @@ -157,6 +157,7 @@ class CRM_Contact_Selector_Custom extends CRM_Contact_Selector { 'qs' => "reset=1&cid=%%id%%{$extraParams}{$searchContext}", 'class' => 'no-popup', 'title' => ts('View Contact Details'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::VIEW), ], CRM_Core_Action::UPDATE => [ 'name' => ts('Edit'), @@ -164,6 +165,7 @@ class CRM_Contact_Selector_Custom extends CRM_Contact_Selector { 'qs' => 'reset=1&action=update&cid=%%id%%', 'class' => 'no-popup', 'title' => ts('Edit Contact Details'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::UPDATE), ], ]; -- 2.25.1