fix order
authordemeritcowboy <demeritcowboy@hotmail.com>
Fri, 15 Sep 2023 13:39:17 +0000 (09:39 -0400)
committerdemeritcowboy <demeritcowboy@hotmail.com>
Fri, 15 Sep 2023 22:08:37 +0000 (18:08 -0400)
CRM/Contribute/Page/ContributionPage.php

index 50b01ce13f3a9e9d7db0ed1dd312467cd739a83a..c0a6389e8247ab3fb1512ea5dab70598bdbab428 100644 (file)
@@ -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'),