From 7d894eda1b4aad497f449cfd7454036ec117c112 Mon Sep 17 00:00:00 2001 From: colemanw Date: Thu, 31 Aug 2023 16:06:11 -0400 Subject: [PATCH] Add pre-upgrade message about the removed TrackingFields.tpl --- CRM/Upgrade/Incremental/php/FiveSixtySix.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CRM/Upgrade/Incremental/php/FiveSixtySix.php b/CRM/Upgrade/Incremental/php/FiveSixtySix.php index 54df02904a..f78f9eb423 100644 --- a/CRM/Upgrade/Incremental/php/FiveSixtySix.php +++ b/CRM/Upgrade/Incremental/php/FiveSixtySix.php @@ -21,6 +21,13 @@ */ class CRM_Upgrade_Incremental_php_FiveSixtySix extends CRM_Upgrade_Incremental_Base { + public function setPreUpgradeMessage(&$preUpgradeMessage, $rev, $currentVer = NULL): void { + if ($rev === '5.66.alpha1') { + $preUpgradeMessage .= '

' . ts('If your site uses custom code to inject tracking fields into messages, it may need updating. See this issue for details.', + [1 => 'href="https://github.com/civicrm/civicrm-core/pull/27233" target="_blank"']) . '

'; + } + } + /** * Upgrade step; adds tasks including 'runSql'. * -- 2.25.1