* [refac] Fix undefined variables when upgrading open version.

This commit is contained in:
liugang
2026-01-08 11:38:02 +08:00
parent 5baff4bb85
commit 247d9b5b5c
2 changed files with 8 additions and 7 deletions
+6 -6
View File
@@ -123,17 +123,17 @@ class upgradeModel extends model
/* Means open source/pro upgrade to biz or max. */
if($this->config->edition != 'open' && ($fromEdition == 'open' || $fromEdition == 'pro'))
{
$methods['importBuildinModules'] = [];
$methods['importLiteModules'] = [];
$methods['addSubStatus'] = [];
$methods['importBuildinModules'] = [];
$methods['importLiteModules'] = [];
$methods['addSubStatus'] = [];
$methods['processDataset'] = [];
$methods['upgradeScreenAndMetricData'] = [];
$methods['upgradeBIData'] = [];
}
$methods['convertCharset'] = [];
$methods['program-refreshStats'] = [true];
$methods['product-refreshStats'] = [true];
$methods['deletePatch'] = [];
$methods['processDataset'] = [];
$methods['upgradeScreenAndMetricData'] = [];
$methods['upgradeBIData'] = [];
return $methods;
}
+2 -1
View File
@@ -18,7 +18,8 @@ jsVar('upgradeVersions', array_keys($upgradeVersions));
$editionNames = [];
foreach(['open', 'biz', 'max', 'ipd'] as $edition)
{
$editionNames[$edition] = $edition == 'open' ? $lang->pmsName : $lang->{$edition . 'Name'};
$editionName = $lang->{$edition . 'Name'} ?? $edition;
$editionNames[$edition] = $edition == 'open' ? $lang->pmsName : $editionName;
}
$toVersionEdition = is_numeric($toVersion[0]) ? 'open' : substr($toVersion, 0, 3);