Add a couple more weights - legacy searches
authorEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 18 Sep 2023 23:30:12 +0000 (11:30 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 18 Sep 2023 23:30:12 +0000 (11:30 +1200)
CRM/Contribute/Page/ContributionPage.php
ext/legacycustomsearches/CRM/Contact/Selector/Custom.php

index c0a6389e8247ab3fb1512ea5dab70598bdbab428..0c455ff5c67c946024879e58ac904bd5448aaf08 100644 (file)
@@ -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'),
index 7170f7e82110169a26278d06c4014f65894f817c..06385ec856afad3c45ae5f0334c51aa0f3cbfd73 100644 (file)
@@ -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),
         ],
       ];