From 71632459fa33fcf7a32ecb7b648fdb4c9196b6c9 Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Fri, 18 Sep 2020 13:06:54 +0800 Subject: [PATCH 2/5] * Finish task #7924. Fix bug #3446. --- module/doc/model.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/doc/model.php b/module/doc/model.php index 5c0201d6a1..adaf6ad4a8 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -1319,6 +1319,7 @@ class docModel extends model $releaseIdList = $this->dao->select('id')->from(TABLE_RELEASE)->where('product')->eq($objectID)->andWhere('deleted')->eq('0')->andWhere('product')->in($this->app->user->view->products)->get(); $planIdList = $this->dao->select('id')->from(TABLE_PRODUCTPLAN)->where('product')->eq($objectID)->andWhere('deleted')->eq('0')->andWhere('product')->in($this->app->user->view->products)->get(); $testReportIdList = $this->dao->select('id')->from(TABLE_TESTREPORT)->where('product')->eq($objectID)->andWhere('deleted')->eq('0')->andWhere('product')->in($this->app->user->view->products)->get(); + $caseIdList = $this->dao->select('id')->from(TABLE_CASE)->where('product')->eq($objectID)->andWhere('deleted')->eq('0')->andWhere('product')->in($this->app->user->view->products)->get(); $files = $this->dao->select('*')->from(TABLE_FILE)->alias('t1') ->where('size')->gt('0') ->andWhere("(objectType = 'product' and objectID = $objectID)", true) @@ -1328,6 +1329,7 @@ class docModel extends model ->orWhere("(objectType = 'release' and objectID in ($releaseIdList))") ->orWhere("(objectType = 'productplan' and objectID in ($planIdList))") ->orWhere("(objectType = 'testreport' and objectID in ($testReportIdList))") + ->orWhere("(objectType = 'testcase' and objectID in ($caseIdList))") ->markRight(1) ->beginIF($searchTitle)->andWhere('title')->like("%{$searchTitle}%")->fi() ->orderBy($orderBy) From 09ee542ac95d8e8c442493b6f71b1aa761368e9f Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Fri, 18 Sep 2020 14:47:25 +0800 Subject: [PATCH 3/5] * Adjust get user function. --- module/project/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/project/model.php b/module/project/model.php index 3b0f2b028b..00b2a5b5b1 100644 --- a/module/project/model.php +++ b/module/project/model.php @@ -2955,7 +2955,7 @@ class projectModel extends model $taskItem->estimate = $task->estimate; $taskItem->consumed = $task->consumed; $taskItem->left = $task->left; - $taskItem->openedBy = $users[$task->openedBy]; + $taskItem->openedBy = zget($users, $task->openedBy); $taskItem->assignedTo = zget($users, $task->assignedTo); $taskItem->url = helper::createLink('task', 'view', "task=$task->id"); $taskItem->storyChanged = $story and $story->status == 'active' and $story->version > $story->taskVersion; From c23c2769f0956db365d9e150f96cde431c158d9c Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Fri, 18 Sep 2020 15:13:40 +0800 Subject: [PATCH 4/5] * Finish task #7956. Fix bug #3361. --- module/install/lang/zh-cn.php | 4 ++-- module/install/lang/zh-tw.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/module/install/lang/zh-cn.php b/module/install/lang/zh-cn.php index ce0c78b080..3507f9f1b4 100644 --- a/module/install/lang/zh-cn.php +++ b/module/install/lang/zh-cn.php @@ -183,7 +183,7 @@ $lang->install->promotion = "为您推荐易软天创旗下其他产品:" $lang->install->chanzhi = new stdclass(); $lang->install->chanzhi->name = '蝉知门户'; $lang->install->chanzhi->logo = 'images/main/chanzhi.ico'; -$lang->install->chanzhi->url = 'http://www.chanzhi.org'; +$lang->install->chanzhi->url = 'http://www.zsite.com'; $lang->install->chanzhi->desc = <<
  • 专业的企业营销门户系统
  • @@ -209,7 +209,7 @@ EOD; $lang->install->xuanxuan = new stdclass(); $lang->install->xuanxuan->name = '喧喧聊天'; $lang->install->xuanxuan->logo = 'images/main/xuanxuan.ico'; -$lang->install->xuanxuan->url = 'http://www.xuan.im'; +$lang->install->xuanxuan->url = 'http://www.xuanim.com'; $lang->install->xuanxuan->desc = <<
  • 轻:轻量级架构,容易部署
  • diff --git a/module/install/lang/zh-tw.php b/module/install/lang/zh-tw.php index bc15a379fe..6907bd42df 100644 --- a/module/install/lang/zh-tw.php +++ b/module/install/lang/zh-tw.php @@ -183,7 +183,7 @@ $lang->install->promotion = "為您推薦易軟天創旗下其他產品:" $lang->install->chanzhi = new stdclass(); $lang->install->chanzhi->name = '蟬知門戶'; $lang->install->chanzhi->logo = 'images/main/chanzhi.ico'; -$lang->install->chanzhi->url = 'http://www.chanzhi.org'; +$lang->install->chanzhi->url = 'http://www.zsite.com'; $lang->install->chanzhi->desc = <<
  • 專業的企業營銷門戶系統
  • @@ -209,7 +209,7 @@ EOD; $lang->install->xuanxuan = new stdclass(); $lang->install->xuanxuan->name = '喧喧聊天'; $lang->install->xuanxuan->logo = 'images/main/xuanxuan.ico'; -$lang->install->xuanxuan->url = 'http://www.xuan.im'; +$lang->install->xuanxuan->url = 'http://www.xuanim.com'; $lang->install->xuanxuan->desc = <<
  • 輕:輕量級架構,容易部署
  • From c1894839580c3e857aa7faa72411bbac6da51abd Mon Sep 17 00:00:00 2001 From: hufangzhou <746775970@qq.com> Date: Fri, 18 Sep 2020 15:15:15 +0800 Subject: [PATCH 5/5] * Finish task#7941. --- module/project/view/view.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/project/view/view.html.php b/module/project/view/view.html.php index daa6b50217..3da59f0ae6 100644 --- a/module/project/view/view.html.php +++ b/module/project/view/view.html.php @@ -231,7 +231,7 @@ - totalConsumed + $project->totalLeft) ? round($project->totalConsumed / ($project->totalConsumed + $project->totalLeft), 3) * 100 : 0;?> + totalConsumed + $project->totalLeft) ? floor($project->totalConsumed / ($project->totalConsumed + $project->totalLeft) * 1000) / 1000 * 100 : 0;?> project->progress;?> percent;?>