diff --git a/CRM/Upgrade/Incremental/php/FiveFiftyFour.php b/CRM/Upgrade/Incremental/php/FiveFiftyFour.php index fac79991cf9eee3c4aad977052cd034dba0f31ef..6c38b980a0769d1fabc5c01c1e49c49e92597708 100644 --- a/CRM/Upgrade/Incremental/php/FiveFiftyFour.php +++ b/CRM/Upgrade/Incremental/php/FiveFiftyFour.php @@ -21,6 +21,15 @@ */ 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 > CiviCase > 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'. *