Add pre-upgrade message about the removed TrackingFields.tpl
authorcolemanw <coleman@civicrm.org>
Thu, 31 Aug 2023 20:06:11 +0000 (16:06 -0400)
committercolemanw <coleman@civicrm.org>
Mon, 4 Sep 2023 02:09:42 +0000 (22:09 -0400)
CRM/Upgrade/Incremental/php/FiveSixtySix.php

index 54df02904a0532438bbb1dad5b9d0187806110ac..f78f9eb4234e8c779a6a4143ee46ec29b19ce139 100644 (file)
  */
 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 .= '<p>' . ts('If your site uses custom code to inject tracking fields into messages, it may need updating. See <a %1>this issue for details</a>.',
+          [1 => 'href="https://github.com/civicrm/civicrm-core/pull/27233" target="_blank"']) . '</p>';
+    }
+  }
+
   /**
    * Upgrade step; adds tasks including 'runSql'.
    *