Skip to content
Snippets Groups Projects
Unverified Commit 366a1ef2 authored by totten's avatar totten Committed by GitHub
Browse files

Merge pull request #22995 from totten/5.47-postupgrade

 #3119 - Post-upgrade messages no longer being displayed
parents 2b679709 972594cb
Branches
Tags
No related merge requests found
......@@ -815,8 +815,9 @@ SET version = '$version'
$config = CRM_Core_Config::singleton();
$config->userSystem->flush();
CRM_Core_Invoke::rebuildMenuAndCaches(FALSE, TRUE);
CRM_Core_Invoke::rebuildMenuAndCaches(FALSE, FALSE);
// NOTE: triggerRebuild is FALSE becaues it will run again in a moment (via fixSchemaDifferences).
// sessionReset is FALSE because upgrade status/postUpgradeMessages are needed by the Page. We reset later in doFinish().
$versionCheck = new CRM_Utils_VersionCheck();
$versionCheck->flushCache();
......@@ -840,6 +841,8 @@ SET version = '$version'
* @return bool
*/
public static function doFinish(): bool {
$session = CRM_Core_Session::singleton();
$session->reset(2);
return TRUE;
}
......
......@@ -195,7 +195,9 @@ class CRM_Upgrade_Incremental_Base {
// Note: A good test-scenario is to install 5.45; enable logging and CiviGrant; disable searchkit+afform; then upgrade to 5.47.
$schema = new CRM_Logging_Schema();
$schema->fixSchemaDifferences();
CRM_Core_Invoke::rebuildMenuAndCaches(FALSE, TRUE);
CRM_Core_Invoke::rebuildMenuAndCaches(FALSE, FALSE);
// sessionReset is FALSE because upgrade status/postUpgradeMessages are needed by the page. We reset later in doFinish().
return TRUE;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment