From a801c5ae945ee8f0eba63e71302ba033c880a4db Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Fri, 5 May 2023 16:15:48 -0400 Subject: [PATCH] upgrade message --- CRM/Upgrade/Incremental/php/FiveSixtyOne.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/CRM/Upgrade/Incremental/php/FiveSixtyOne.php b/CRM/Upgrade/Incremental/php/FiveSixtyOne.php index c9e59195a3..75534f010b 100644 --- a/CRM/Upgrade/Incremental/php/FiveSixtyOne.php +++ b/CRM/Upgrade/Incremental/php/FiveSixtyOne.php @@ -41,6 +41,14 @@ class CRM_Upgrade_Incremental_php_FiveSixtyOne extends CRM_Upgrade_Incremental_B } } + public function setPostUpgradeMessage(&$postUpgradeMessage, $rev): void { + if ($rev === '5.61.1') { + if (defined('CIVICRM_UF') && CIVICRM_UF === 'Drupal8') { + $postUpgradeMessage .= '

' . ts('You must do a one-time clear of Drupal caches now before visiting CiviCRM pages to rebuild the menu routes to avoid fatal errors. Read more.', [1 => 'href="https://civicrm.org/redirect/drupal-5.61" target="_blank"']) . '

'; + } + } + } + /** * Upgrade step; adds tasks including 'runSql'. * @@ -71,6 +79,12 @@ class CRM_Upgrade_Incremental_php_FiveSixtyOne extends CRM_Upgrade_Incremental_B $this->addTask(ts('Create index %1', [1 => 'civicrm_campaign.UI_name']), 'addIndex', 'civicrm_campaign', 'name', 'UI'); } + /** + * Needs to exist for postUpgradeMessage to get called. + */ + public function upgrade_5_61_1($rev): void { + } + /** * Remove extraneous/duplicate records from `civicrm_cache`. * -- 2.25.1