sid doesn't get set
authordemeritcowboy <demeritcowboy@hotmail.com>
Mon, 11 Oct 2021 22:18:45 +0000 (18:18 -0400)
committerdemeritcowboy <demeritcowboy@hotmail.com>
Mon, 11 Oct 2021 22:27:20 +0000 (18:27 -0400)
CRM/Upgrade/Page/Upgrade.php

index 28b900df42c5efe4929720492f19ac3844e8995a..cafa24aa22ef23e9ac2b3b27199b2b458e65a0e4 100644 (file)
@@ -77,6 +77,7 @@ class CRM_Upgrade_Page_Upgrade extends CRM_Core_Page {
     CRM_Core_Smarty::singleton()->assign('sid', CRM_Utils_System::getSiteID());
     // Show success msg if db already upgraded
     if (version_compare($currentVer, $latestVer) == 0) {
+      $template->assign('message', '');
       $template->assign('upgraded', TRUE);
       $template->assign('newVersion', $latestVer);
       CRM_Utils_System::setTitle(ts('Your database has already been upgraded to CiviCRM %1',
@@ -189,6 +190,7 @@ class CRM_Upgrade_Page_Upgrade extends CRM_Core_Page {
     $template->assign('message', $postUpgradeMessage);
     $template->assign('upgraded', TRUE);
     $template->assign('newVersion', $latestVer);
+    $template->assign('sid', CRM_Utils_System::getSiteID());
 
     // Render page header
     if (!defined('CIVICRM_UF_HEAD') && $region = CRM_Core_Region::instance('html-header', FALSE)) {