From 2d7965c8035ac50c481fe19616b9ef4e0bbcb597 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 17 May 2023 15:26:51 +1200 Subject: [PATCH] Adjust weights so link order is inchanged --- CRM/Contribute/Page/Tab.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Contribute/Page/Tab.php b/CRM/Contribute/Page/Tab.php index 06c1221d49..4f7cf26fcf 100644 --- a/CRM/Contribute/Page/Tab.php +++ b/CRM/Contribute/Page/Tab.php @@ -139,6 +139,7 @@ class CRM_Contribute_Page_Tab extends CRM_Core_Page { 'title' => ts('Cancel'), // Only display on-site links in a popup. 'class' => (stripos($url, 'http') !== FALSE) ? 'no-popup' : '', + 'weight' => -50, ]; } @@ -152,6 +153,7 @@ class CRM_Contribute_Page_Tab extends CRM_Core_Page { 'url' => $url, // Only display on-site links in a popup. 'class' => (stripos($url, 'http') !== FALSE) ? 'no-popup' : '', + 'weight' => -15, ]; } @@ -166,6 +168,7 @@ class CRM_Contribute_Page_Tab extends CRM_Core_Page { 'url' => $url, // Only display on-site links in a popup. 'class' => (stripos($url, 'http') !== FALSE) ? 'no-popup' : '', + 'weight' => -10, ]; } return $links; -- 2.25.1