* [refac] Fix undefined variables when upgrading open version.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user