From: demeritcowboy Date: Fri, 15 Sep 2023 13:39:17 +0000 (-0400) Subject: fix order X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=67581862fe822987032a08825c8dc001992961e9;p=civicrm-core.git fix order --- diff --git a/CRM/Contribute/Page/ContributionPage.php b/CRM/Contribute/Page/ContributionPage.php index 50b01ce13f..c0a6389e82 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' => CRM_Core_Action::getWeight(CRM_Core_Action::VIEW), ], CRM_Core_Action::UPDATE => [ 'name' => ts('Contribution Amounts'), @@ -128,7 +129,8 @@ class CRM_Contribute_Page_ContributionPage extends CRM_Core_Page { 'url' => $urlString . 'membership', 'qs' => $urlParams, 'uniqueName' => 'membership', - 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::VIEW), + // This should come after Title + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::ADD), ], CRM_Core_Action::EXPORT => [ 'name' => ts('Thank-you and Receipting'),