add upgrade message
authordemeritcowboy <demeritcowboy@hotmail.com>
Mon, 15 Aug 2022 20:13:06 +0000 (16:13 -0400)
committerdemeritcowboy <demeritcowboy@hotmail.com>
Tue, 16 Aug 2022 01:11:35 +0000 (21:11 -0400)
CRM/Upgrade/Incremental/php/FiveFiftyFour.php

index fac79991cf9eee3c4aad977052cd034dba0f31ef..6c38b980a0769d1fabc5c01c1e49c49e92597708 100644 (file)
  */
 class CRM_Upgrade_Incremental_php_FiveFiftyFour extends CRM_Upgrade_Incremental_Base {
 
+  public function setPreUpgradeMessage(&$preUpgradeMessage, $rev, $currentVer = NULL) {
+    parent::setPreUpgradeMessage($preUpgradeMessage, $rev, $currentVer);
+    if ($rev === '5.54.alpha1') {
+      if (\Civi::settings()->get('civicaseActivityRevisions')) {
+        $preUpgradeMessage .= '<p>' . ts('The setting that used to be at <em>Administer &gt; CiviCase &gt; CiviCase Settings</em> for <strong>Enable deprecated Embedded Activity Revisions</strong> is enabled, but is no longer functional.<ul><li>For more information see this <a %1>Lab Snippet</a>.</li></ul>', [1 => 'target="_blank" href="https://lab.civicrm.org/-/snippets/85"']) . '</p>';
+      }
+    }
+  }
+
   /**
    * Upgrade step; adds tasks including 'runSql'.
    *