From 38a6db7facb5ab73184fddaac84b78b3802dabad Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Mon, 15 Aug 2022 16:13:06 -0400 Subject: [PATCH] add upgrade message --- CRM/Upgrade/Incremental/php/FiveFiftyFour.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CRM/Upgrade/Incremental/php/FiveFiftyFour.php b/CRM/Upgrade/Incremental/php/FiveFiftyFour.php index fac79991cf..6c38b980a0 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 .= '

' . ts('The setting that used to be at Administer > CiviCase > CiviCase Settings for Enable deprecated Embedded Activity Revisions is enabled, but is no longer functional.

', [1 => 'target="_blank" href="https://lab.civicrm.org/-/snippets/85"']) . '

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