From: demeritcowboy Date: Wed, 20 Sep 2023 03:13:21 +0000 (-0400) Subject: fix weights again X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f4b30e970abeae5006b227babb4798624f1615ca;p=civicrm-core.git fix weights again --- diff --git a/CRM/Contribute/Page/ContributionPage.php b/CRM/Contribute/Page/ContributionPage.php index 0c455ff5c6..89de378665 100644 --- a/CRM/Contribute/Page/ContributionPage.php +++ b/CRM/Contribute/Page/ContributionPage.php @@ -112,7 +112,8 @@ class CRM_Contribute_Page_ContributionPage extends CRM_Core_Page { 'url' => $urlString . 'settings', 'qs' => $urlParams, 'uniqueName' => 'settings', - 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::ADD), + // This needs to be lower than Membership Settings since otherwise the order doesn't make sense. + 'weight' => -20, ], CRM_Core_Action::UPDATE => [ 'name' => ts('Contribution Amounts'), @@ -129,7 +130,7 @@ class CRM_Contribute_Page_ContributionPage extends CRM_Core_Page { 'qs' => $urlParams, 'uniqueName' => 'membership', // This should come after Title - 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::ADD), + 'weight' => 0, ], CRM_Core_Action::EXPORT => [ 'name' => ts('Thank-you and Receipting'),