* adjust for upgrade.

This commit is contained in:
wangyidong
2021-05-11 10:49:49 +08:00
parent b712c10fbd
commit 25af1d9516
8 changed files with 35 additions and 10 deletions
+3
View File
@@ -3,3 +3,6 @@ ALTER TABLE `zt_webhook` CHANGE `executions` `executions` text NOT NULL;
ALTER TABLE `zt_projectcase` ADD `count` mediumint(8) unsigned NOT NULL DEFAULT '1' AFTER `case`;
ALTER TABLE `zt_repo` ADD `extra` char(30) COLLATE 'utf8_general_ci' NOT NULL AFTER `desc`;
UPDATE `zt_config` set `value`='program-browse' where `key`='programLink' and `value`='program-pgmbrowse';
UPDATE `zt_config` set `value`='project-browse' where `key`='projectLink' and `value`='program-prjbrowse';
+1
View File
@@ -160,6 +160,7 @@ $lang->bug->createBuild = '創建';
/* legend列表。*/
$lang->bug->legendBasicInfo = '基本信息';
$lang->bug->legendAttatch = '附件';
$lang->bug->legendPRJExecStoryTask = "項目/" . $lang->executionCommon . "/{$lang->SRCommon}/任務";
$lang->bug->legendExecStoryTask = $lang->executionCommon . "/{$lang->SRCommon}/任務";
$lang->bug->lblTypeAndSeverity = '類型/嚴重程度';
$lang->bug->lblSystemBrowserAndHardware = '系統/瀏覽器';
+1 -1
View File
@@ -61,7 +61,7 @@ $lang->testtask->id = '編號';
$lang->testtask->common = '測試單';
$lang->testtask->product = '所屬' . $lang->productCommon;
$lang->testtask->project = '所屬項目';
$lang->testtask->execution = '所屬' . $lang->executionCommon;
$lang->testtask->execution = '所屬' . $lang->execution->common;
$lang->testtask->build = '版本';
$lang->testtask->owner = '負責人';
$lang->testtask->executor = '執行人';
+16 -5
View File
@@ -23,7 +23,8 @@ class upgrade extends control
$upgradeFile = $this->app->wwwRoot . 'upgrade.php';
if(!file_exists($upgradeFile)) $this->locate($this->createLink('my', 'index'));
if(!$this->config->systemMode && !isset($this->config->qcVersion))
$systemMode = $this->loadModel('setting')->getItem('owner=system&module=common&section=global&key=mode');
if(empty($systemMode) && !isset($this->config->qcVersion))
{
/* Judge upgrade step. */
$upgradeStep = $this->loadModel('setting')->getItem('owner=system&module=common&section=global&key=upgradeStep');
@@ -134,7 +135,12 @@ class upgrade extends control
if(!$this->upgrade->isError())
{
if(!$this->config->systemMode && !isset($this->config->qcVersion) && strpos($fromVersion, 'max') === false) $this->locate(inlink('to15Guide', "fromVersion=$fromVersion"));
$systemMode = $this->loadModel('setting')->getItem('owner=system&module=common&section=global&key=mode');
if((empty($systemMode) && !isset($this->config->qcVersion) && strpos($fromVersion, 'max') === false) or
($systemMode != 'new' && strpos($fromVersion, 'max') === false && strpos($this->config->version, 'max') !== false))
{
$this->locate(inlink('to15Guide', "fromVersion=$fromVersion"));
}
$this->locate(inlink('afterExec', "fromVersion=$fromVersion"));
}
@@ -161,14 +167,19 @@ class upgrade extends control
if($mode == 'new') $this->locate(inlink('mergeTips'));
}
if(isset($this->config->bizVersion))
if(isset($this->config->maxVersion))
{
$this->lang->upgrade->to15Desc = str_replace('15', '5', $this->lang->upgrade->to15Desc);
$this->lang->upgrade->to15Desc = str_replace('15', 'Max2', $this->lang->upgrade->to15Desc);
$title = $this->lang->upgrade->toMAXGuide;
}
elseif(isset($this->config->bizVersion))
{
$this->lang->upgrade->to15Desc = str_replace('15', 'Biz5', $this->lang->upgrade->to15Desc);
$title = $this->lang->upgrade->toBIZ5Guide;
}
elseif(isset($this->config->proVersion))
{
$this->lang->upgrade->to15Desc = str_replace('15', '10', $this->lang->upgrade->to15Desc);
$this->lang->upgrade->to15Desc = str_replace('15', 'Pro10', $this->lang->upgrade->to15Desc);
$title = $this->lang->upgrade->toPRO10Guide;
}
else
+1
View File
@@ -56,6 +56,7 @@ $lang->upgrade->mergeTips = 'Data Migration Tips';
$lang->upgrade->toPMS15Guide = 'ZenTao open source version 15.0.beta1 upgrade';
$lang->upgrade->toPRO10Guide = 'ZenTao profession version 10.0.rc1 upgrade';
$lang->upgrade->toBIZ5Guide = 'ZenTao enterprise version 5.0.rc1 upgrade';
$lang->upgrade->toMAX5Guide = 'ZenTao ultimate version upgrade';
$lang->upgrade->to15Desc = <<<EOD
<p>Dear users, ZenTao has made adjustments to navigation and concepts since version 15. The main changes are as follows:</p>
<ol>
+1
View File
@@ -56,6 +56,7 @@ $lang->upgrade->mergeTips = '数据迁移提示';
$lang->upgrade->toPMS15Guide = '禅道开源版15版本升级';
$lang->upgrade->toPRO10Guide = '禅道专业版10版本升级';
$lang->upgrade->toBIZ5Guide = '禅道企业版5版本升级';
$lang->upgrade->toMAXGuide = '禅道旗舰版版本升级';
$lang->upgrade->to15Desc = <<<EOD
<p>尊敬的用户,禅道从15版本开始对导航和概念做了调整,主要改动如下:</p>
<ol>
+4 -1
View File
@@ -53,7 +53,10 @@ $lang->upgrade->noticeSQL = '檢查到你的資料庫跟標準不一致,
$lang->upgrade->afterDeleted = '以上檔案未能刪除, 刪除後刷新!';
$lang->upgrade->mergeProgram = '數據遷移';
$lang->upgrade->mergeTips = '數據遷移提示';
$lang->upgrade->to15Guide = '禪道開源版15版本升級';
$lang->upgrade->toPMS15Guide = '禪道開源版15版本升級';
$lang->upgrade->toPRO10Guide = '禪道專業版10版本升級';
$lang->upgrade->toBIZ5Guide = '禪道企業版5版本升級';
$lang->upgrade->toMAXGuide = '禪道旗艦版版本升級';
$lang->upgrade->to15Desc = <<<EOD
<p>尊敬的用戶,禪道從15版本開始對導航和概念做了調整,主要改動如下:</p>
<ol>
+8 -3
View File
@@ -16,7 +16,11 @@
<form method='post'>
<div class='panel-title text-center'>
<?php
if(isset($config->bizVersion))
if(isset($config->maxVersion))
{
echo $lang->upgrade->toMAXGuide;
}
elseif(isset($config->bizVersion))
{
echo $lang->upgrade->toBIZ5Guide;
}
@@ -33,9 +37,10 @@
<div class='panel-body'>
<div style='width:600px; margin: auto;'>
<?php echo $lang->upgrade->to15Desc;?>
<?php echo html::radio('mode', $lang->upgrade->to15Mode, 'classic');?>
<?php $systemMode = isset($lang->upgrade->to15Mode['classic']) ? 'classic' : 'new');?>
<?php echo html::radio('mode', $lang->upgrade->to15Mode, $systemMode);?>
<p> </p>
<div id='selectedModeTips' class='text-info'><?php echo $lang->upgrade->selectedModeTips['classic'];?></div>
<div id='selectedModeTips' class='text-info'><?php echo $lang->upgrade->selectedModeTips[$systemMode];?></div>
</div>
</div>
<hr/>