From 3dd13d66c5b2db5c546f2fe4542469c5d9592cf5 Mon Sep 17 00:00:00 2001 From: Yagami <976204163@qq.com> Date: Thu, 1 Apr 2021 15:26:06 +0800 Subject: [PATCH 1/2] * Fix upgrade logic. --- module/upgrade/model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/upgrade/model.php b/module/upgrade/model.php index 15db78dd87..afbac96eb6 100644 --- a/module/upgrade/model.php +++ b/module/upgrade/model.php @@ -4232,8 +4232,8 @@ class upgradeModel extends model public function processMergedData($programID, $projectID, $lineID, $productIdList = array(), $sprintIdList = array()) { /* Product linked objects. */ - $this->dao->update(TABLE_STORY)->set('project')->eq($programID)->where('product')->in($productIdList)->exec(); - $this->dao->update(TABLE_RELEASE)->set('project')->eq($programID)->where('product')->in($productIdList)->exec(); + $this->dao->update(TABLE_STORY)->set('project')->eq($projectID)->where('product')->in($productIdList)->exec(); + $this->dao->update(TABLE_RELEASE)->set('project')->eq($projectID)->where('product')->in($productIdList)->exec(); /* Compute product acl. */ $products = $this->dao->select('id,program,acl')->from(TABLE_PRODUCT)->where('id')->in($productIdList)->fetchAll(); From e6849940e9cb3bb2e2ff35c18c3d520b20e5c6a8 Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Thu, 1 Apr 2021 15:27:55 +0800 Subject: [PATCH 2/2] * Finish task #37015. --- .../block/view/projectstatisticblock.html.php | 97 ++++++++----------- module/project/lang/zh-cn.php | 9 +- module/project/lang/zh-tw.php | 9 +- 3 files changed, 53 insertions(+), 62 deletions(-) diff --git a/module/block/view/projectstatisticblock.html.php b/module/block/view/projectstatisticblock.html.php index a4818339b8..31ff3874e9 100644 --- a/module/block/view/projectstatisticblock.html.php +++ b/module/block/view/projectstatisticblock.html.php @@ -63,13 +63,21 @@ html[lang="en"] .product-info .type-info {color: #A6AAB8; text-align: center; po .status-count {margin: auto;} .status-count tr:first-child td:last-child {color: #000; font-weight: bold;} -.block-statistic .progress-group {margin-top: 20px; margin-bottom: 10px; height: 65px;} -.block-statistic .weekly-title {font-weight: bold; font-size:14px; color: #3C4253;} +.block-statistic .project-info {margin-left: 3px;} +.block-statistic .progress-group {margin-top: 10px;} +.block-statistic .progress-group .col {padding-left: 0;} +.block-statistic .progress-percent {top: 4px;} +.block-statistic .weekly-title {font-weight: bold; color: #3C4253;} .block-statistic .weekly-small {font-size:12px; color: #838A9D;} .block-statistic .weekly-progress {font-weight: bold; font-size:24px;} .block-statistic .weekly-name {font-size: 14px; color: #838A9D;} .block-statistic .weekly-value {font-size: 14px;} -.block-statistic .col-6 .stage {margin-left: 10px;} +.block-statistic .col-12 .stage {margin-left: 10px;} +.block-statistic .col-12 .waterfall-title {padding-top: 5px;} +.block-statistic .col-12 .waterfall-value {padding-top: 10px; font-size: 18px; font-weight: 600;} +.block-statistic .col-12 .waterfall-title .col {padding-right: 0px; padding-left: 0px;} + +.twenty-percent {width: 20%;}