From 120d78c94239cf8ce0862c1ff0324999a4e11743 Mon Sep 17 00:00:00 2001 From: qiyu-xie Date: Wed, 20 Jan 2021 10:36:40 +0800 Subject: [PATCH 01/11] * Modify the problem of test list in contribution. --- module/my/view/testtask.html.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/my/view/testtask.html.php b/module/my/view/testtask.html.php index 9eabf844e7..d57eba9c36 100644 --- a/module/my/view/testtask.html.php +++ b/module/my/view/testtask.html.php @@ -35,11 +35,11 @@ idAB);?> testtask->name);?> testtask->project);?> - testtask->build);?> + testtask->build);?> testtask->begin);?> testtask->end);?> statusAB);?> - actions;?> + actions;?> @@ -48,7 +48,7 @@ id);?> createLink('testtask', 'view', "taskID=$task->id", '', '', $task->PRJ), $task->name, '', "data-group='project'");?> projectName?> - build == 'trunk' ? print($lang->trunk) : print(html::a($this->createLink('build', 'view', "buildID=$task->build", '', '', $task->PRJ), $task->buildName, '', "data-group='project'"));?> + build == 'trunk' ? print($lang->trunk) : print(html::a($this->createLink('build', 'view', "buildID=$task->build", '', '', $task->PRJ), $task->buildName, '', "data-group='project'"));?> begin?> end?> processStatus('testtask', $task);?> From d8dc42d6c8ae094c7d4d328df00c61760fc06a04 Mon Sep 17 00:00:00 2001 From: qiyu-xie Date: Wed, 20 Jan 2021 10:57:38 +0800 Subject: [PATCH 02/11] * Modify the milestone icon display of Gantt. --- module/programplan/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/programplan/model.php b/module/programplan/model.php index 5d7b7ff75f..67dff3c1c8 100644 --- a/module/programplan/model.php +++ b/module/programplan/model.php @@ -182,7 +182,7 @@ class programplanModel extends model $data = new stdclass(); $data->id = $plan->id; $data->type = 'plan'; - $data->text = empty($plan->milestone) ? $plan->name : $isMilestone . $plan->name; + $data->text = empty($plan->milestone) ? $plan->name : $plan->name . $isMilestone ; $data->percent = $plan->percent; $data->attribute = zget($this->lang->stage->typeList, $plan->attribute); $data->milestone = zget($this->lang->programplan->milestoneList, $plan->milestone); From 912f727bd3890f7cc37ddd5cbdc14dc0aeb5e2cd Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Wed, 20 Jan 2021 11:03:26 +0800 Subject: [PATCH 03/11] * Adjust the style. --- module/bug/css/create.css | 1 - 1 file changed, 1 deletion(-) diff --git a/module/bug/css/create.css b/module/bug/css/create.css index 1bb962b51b..33e62bf738 100644 --- a/module/bug/css/create.css +++ b/module/bug/css/create.css @@ -38,7 +38,6 @@ html[lang='en'] #deadlineTd .input-group-addon{padding: 5px 18px} .title-group .chosen-container {width: 1%!important; min-width: 70px;} .title-group #severity + .chosen-container > .chosen-single {border-radius: 0!important;} .title-group #pri + .chosen-container > .chosen-single {border-top-left-radius: 0!important; border-bottom-left-radius: 0!important;} -.title-group .has-icon-right{min-width:700px} #mainContent .center-block{padding-bottom:40px;} #typeBox {width:180px;} From fffa111543c355f58fd507333e2d3778bf7fc026 Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Wed, 20 Jan 2021 11:05:53 +0800 Subject: [PATCH 04/11] * Modify language item. --- module/common/lang/de.php | 2 +- module/common/lang/en.php | 2 +- module/common/lang/fr.php | 2 +- module/common/lang/vi.php | 2 +- module/common/lang/zh-cn.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/module/common/lang/de.php b/module/common/lang/de.php index 05186d7ef1..406de91cc1 100644 --- a/module/common/lang/de.php +++ b/module/common/lang/de.php @@ -378,7 +378,7 @@ $lang->project->subMenu->more->whitelist = array('link' => 'Whitelist|project|wh $lang->project->subMenu->more->action = array('link' => 'Verlauf|project|dynamic|projectID=%s'); $lang->project->subMenu->more->view = array('link' => 'Übersicht|project|view|projectID=%s', 'subModule' => 'view', 'alias' => 'edit,start,suspend,putoff,close'); -$lang->project->dividerMenu = ',project,programplan,projectbuild,story,other,'; +$lang->project->dividerMenu = ',project,programplan,projectbuild,story,doc,other,'; $lang->task = new stdclass(); $lang->build = new stdclass(); diff --git a/module/common/lang/en.php b/module/common/lang/en.php index ed3464c02a..54217d3dae 100644 --- a/module/common/lang/en.php +++ b/module/common/lang/en.php @@ -378,7 +378,7 @@ $lang->project->subMenu->more->whitelist = array('link' => 'Whitelist|project|wh $lang->project->subMenu->more->action = array('link' => 'Dynamics|project|dynamic|projectID=%s'); $lang->project->subMenu->more->view = array('link' => 'Overview|project|view|projectID=%s', 'subModule' => 'view', 'alias' => 'edit,start,suspend,putoff,close'); -$lang->project->dividerMenu = ',project,programplan,projectbuild,story,other,'; +$lang->project->dividerMenu = ',project,programplan,projectbuild,story,doc,other,'; $lang->task = new stdclass(); $lang->build = new stdclass(); diff --git a/module/common/lang/fr.php b/module/common/lang/fr.php index 3c5014c501..27a9171f8d 100644 --- a/module/common/lang/fr.php +++ b/module/common/lang/fr.php @@ -378,7 +378,7 @@ $lang->project->subMenu->more->whitelist = array('link' => 'Whitelist|project|wh $lang->project->subMenu->more->action = array('link' => 'Historique|project|dynamic|projectID=%s'); $lang->project->subMenu->more->view = array('link' => "Vue d'ensemble|project|view|projectID=%s", 'subModule' => 'view', 'alias' => 'edit,start,suspend,putoff,close'); -$lang->project->dividerMenu = ',project,programplan,projectbuild,story,other,'; +$lang->project->dividerMenu = ',project,programplan,projectbuild,story,doc,other,'; $lang->task = new stdclass(); $lang->build = new stdclass(); diff --git a/module/common/lang/vi.php b/module/common/lang/vi.php index 92472921d2..cc20a5e32c 100644 --- a/module/common/lang/vi.php +++ b/module/common/lang/vi.php @@ -378,7 +378,7 @@ $lang->project->subMenu->more->whitelist = array('link' => 'Whitelist|project|wh $lang->project->subMenu->more->action = array('link' => 'Lịch sử|project|dynamic|projectID=%s'); $lang->project->subMenu->more->view = array('link' => 'Tổng quan|project|view|projectID=%s', 'subModule' => 'view', 'alias' => 'edit,start,suspend,putoff,close'); -$lang->project->dividerMenu = ',project,programplan,projectbuild,story,other,'; +$lang->project->dividerMenu = ',project,programplan,projectbuild,story,doc,other,'; $lang->task = new stdclass(); $lang->build = new stdclass(); diff --git a/module/common/lang/zh-cn.php b/module/common/lang/zh-cn.php index 5d9fedcf32..c6fac1430f 100644 --- a/module/common/lang/zh-cn.php +++ b/module/common/lang/zh-cn.php @@ -378,7 +378,7 @@ $lang->project->subMenu->more->whitelist = array('link' => '白名单|project|wh $lang->project->subMenu->more->action = array('link' => '动态|project|dynamic|projectID=%s'); $lang->project->subMenu->more->view = array('link' => '概况|project|view|projectID=%s', 'subModule' => 'view', 'alias' => 'edit,start,suspend,putoff,close'); -$lang->project->dividerMenu = ',project,programplan,projectbuild,story,other,'; +$lang->project->dividerMenu = ',project,programplan,projectbuild,story,doc,other,'; $lang->task = new stdclass(); $lang->build = new stdclass(); From 0379c68c9e187e410992c57d75b767112b728398 Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Wed, 20 Jan 2021 11:15:32 +0800 Subject: [PATCH 05/11] * Navigation highlight. --- module/common/lang/de.php | 2 +- module/common/lang/en.php | 2 +- module/common/lang/fr.php | 2 +- module/common/lang/vi.php | 2 +- module/common/lang/zh-cn.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/module/common/lang/de.php b/module/common/lang/de.php index ddc9bce5d0..6cd1e45b73 100644 --- a/module/common/lang/de.php +++ b/module/common/lang/de.php @@ -210,7 +210,7 @@ $lang->system = new stdclass(); $lang->system->menu = new stdclass(); $lang->system->menu->company = array('link' => 'Global Settings|subject|browse|', 'subModule' => 'holiday'); $lang->system->menu->scrum = array('link' => 'Scrum Model|custom|configurescrum|'); -$lang->system->menu->waterfall = array('link' => 'Waterfall Model|stage|settype|'); +$lang->system->menu->waterfall = array('link' => 'Waterfall Model|stage|settype|', 'alias' => 'browse'); $lang->subject = new stdclass(); $lang->subject->menu = new stdclass(); diff --git a/module/common/lang/en.php b/module/common/lang/en.php index 3a3bdf230f..e6b3385ffa 100644 --- a/module/common/lang/en.php +++ b/module/common/lang/en.php @@ -210,7 +210,7 @@ $lang->system = new stdclass(); $lang->system->menu = new stdclass(); $lang->system->menu->company = array('link' => 'Global Settings|subject|browse|', 'subModule' => 'holiday'); $lang->system->menu->scrum = array('link' => 'Scrum Model|custom|configurescrum|'); -$lang->system->menu->waterfall = array('link' => 'Waterfall Model|stage|settype|'); +$lang->system->menu->waterfall = array('link' => 'Waterfall Model|stage|settype|', 'alias' => 'browse'); $lang->subject = new stdclass(); $lang->subject->menu = new stdclass(); diff --git a/module/common/lang/fr.php b/module/common/lang/fr.php index 24a7033887..7d33174c6d 100644 --- a/module/common/lang/fr.php +++ b/module/common/lang/fr.php @@ -210,7 +210,7 @@ $lang->system = new stdclass(); $lang->system->menu = new stdclass(); $lang->system->menu->company = array('link' => 'Global Settings|subject|browse|', 'subModule' => 'holiday'); $lang->system->menu->scrum = array('link' => 'Scrum Model|custom|configurescrum|'); -$lang->system->menu->waterfall = array('link' => 'Waterfall Model|stage|settype|'); +$lang->system->menu->waterfall = array('link' => 'Waterfall Model|stage|settype|', 'alias' => 'browse'); $lang->subject = new stdclass(); $lang->subject->menu = new stdclass(); diff --git a/module/common/lang/vi.php b/module/common/lang/vi.php index 5185315e8f..90a502b491 100644 --- a/module/common/lang/vi.php +++ b/module/common/lang/vi.php @@ -210,7 +210,7 @@ $lang->system = new stdclass(); $lang->system->menu = new stdclass(); $lang->system->menu->company = array('link' => 'Global Settings|subject|browse|', 'subModule' => 'holiday'); $lang->system->menu->scrum = array('link' => 'Scrum Model|custom|configurescrum|'); -$lang->system->menu->waterfall = array('link' => 'Waterfall Model|stage|settype|'); +$lang->system->menu->waterfall = array('link' => 'Waterfall Model|stage|settype|', 'alias' => 'browse'); $lang->subject = new stdclass(); $lang->subject->menu = new stdclass(); diff --git a/module/common/lang/zh-cn.php b/module/common/lang/zh-cn.php index c6fac1430f..1fb1c7aefa 100644 --- a/module/common/lang/zh-cn.php +++ b/module/common/lang/zh-cn.php @@ -210,7 +210,7 @@ $lang->system = new stdclass(); $lang->system->menu = new stdclass(); $lang->system->menu->company = array('link' => '全局设置|subject|browse|', 'subModule' => 'holiday'); $lang->system->menu->scrum = array('link' => '敏捷模型|custom|configurescrum|'); -$lang->system->menu->waterfall = array('link' => '瀑布模型|stage|settype|'); +$lang->system->menu->waterfall = array('link' => '瀑布模型|stage|settype|', 'alias' => 'browse'); $lang->subject = new stdclass(); $lang->subject->menu = new stdclass(); From f7426ed01320d9bd53ed1b6c529705befe0e248f Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Wed, 20 Jan 2021 11:22:01 +0800 Subject: [PATCH 06/11] * Adjust the style. --- module/bug/view/create.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/bug/view/create.html.php b/module/bug/view/create.html.php index 6b6bd9700b..68fae98ea1 100644 --- a/module/bug/view/create.html.php +++ b/module/bug/view/create.html.php @@ -314,6 +314,6 @@ js::set('isStepsTemplate', $isStepsTemplate); bug->module);?> From 560b17adf1e649ed16a3476142977c026e57aab1 Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Wed, 20 Jan 2021 11:32:29 +0800 Subject: [PATCH 07/11] * Fix productivity issues. --- module/workestimation/model.php | 5 ++++- module/workestimation/view/index.html.php | 5 +++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/module/workestimation/model.php b/module/workestimation/model.php index 6bcce1c500..3466145a61 100644 --- a/module/workestimation/model.php +++ b/module/workestimation/model.php @@ -46,7 +46,10 @@ class workestimationModel extends model */ public function save($projectID) { - $data = fixer::input('post')->setDefault('PRJ', $projectID)->get(); + $data = fixer::input('post') + ->setDefault('PRJ', $projectID) + ->setIF(!isset($_POST['productivity']), 'productivity', 1) + ->get(); $budget = $this->getBudget($projectID); if(!empty($budget)) $data->id = $budget->id; diff --git a/module/workestimation/view/index.html.php b/module/workestimation/view/index.html.php index d1512ecf67..e2c10302fb 100644 --- a/module/workestimation/view/index.html.php +++ b/module/workestimation/view/index.html.php @@ -36,10 +36,11 @@ workestimation->productivity;?>
- + + custom->unitList['efficiency'] . $lang->hourCommon; + if($hourPoint == 0) echo $lang->hourCommon; if($hourPoint == 1) echo $lang->custom->unitList['efficiency'] . $lang->hourCommon; if($hourPoint == 2) echo $lang->custom->unitList['manhour'] . $lang->custom->unitList['loc']; ?> From ccb8ad2fc5da3a77313ef47f78aa5f1acf13b3a7 Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Wed, 20 Jan 2021 13:04:08 +0800 Subject: [PATCH 08/11] * Adjust the style. --- module/bug/css/create.css | 1 + module/projectrelease/model.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/module/bug/css/create.css b/module/bug/css/create.css index 33e62bf738..a3f2692fe7 100644 --- a/module/bug/css/create.css +++ b/module/bug/css/create.css @@ -28,6 +28,7 @@ html[lang='en'] #deadlineTd .input-group-addon{padding: 5px 18px} .input-group-addon.w-90px{min-width:90px;} .input-group .input-group-btn .btn{padding: 6px 12px;} +.input-group .chosen-container{min-width: 80px;} #all{border-left:none} .pri-selector > .btn {padding: 5px 8px!important; width: 100%;} diff --git a/module/projectrelease/model.php b/module/projectrelease/model.php index d7c7ffffd4..3fff8bde4b 100644 --- a/module/projectrelease/model.php +++ b/module/projectrelease/model.php @@ -179,7 +179,8 @@ class projectreleaseModel extends model $this->dao->insert(TABLE_RELEASE)->data($release) ->autoCheck() ->batchCheck($this->config->release->create->requiredFields, 'notempty') - ->check('name', 'unique', "product = {$release->product} AND branch = {$release->branch} AND deleted = '0'"); + ->check('name', 'unique', "product = {$release->product} AND branch = {$release->branch} AND deleted = '0'") + ->exec(); if(dao::isError()) { From db6acf2cf2a1f658f44f2cc535eea7890ba0e180 Mon Sep 17 00:00:00 2001 From: qiyu-xie Date: Wed, 20 Jan 2021 13:24:11 +0800 Subject: [PATCH 09/11] * Modify the milestone icon for the release. --- module/programplan/model.php | 2 +- module/projectrelease/view/browse.html.php | 2 +- module/projectrelease/view/view.html.php | 2 +- module/release/view/browse.html.php | 2 +- module/release/view/view.html.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/module/programplan/model.php b/module/programplan/model.php index 67dff3c1c8..3c00650367 100644 --- a/module/programplan/model.php +++ b/module/programplan/model.php @@ -736,7 +736,7 @@ class programplanModel extends model echo sprintf('%03d', $plan->id); break; case 'name': - $milestoneFlag = $plan->milestone ? " lang->programplan->milestone} style='color:red'>" : ''; + $milestoneFlag = $plan->milestone ? " lang->programplan->milestone}'>" : ''; if($plan->grade > 1) echo '' . $this->lang->programplan->childrenAB . ' '; echo $plan->name . $milestoneFlag; if(!empty($plan->children)) echo ''; diff --git a/module/projectrelease/view/browse.html.php b/module/projectrelease/view/browse.html.php index 8b6600de9b..5eedacbc32 100644 --- a/module/projectrelease/view/browse.html.php +++ b/module/projectrelease/view/browse.html.php @@ -62,7 +62,7 @@ id"), sprintf('%03d', $release->id));?> marker ? " " : ''; + $flagIcon = $release->marker ? " " : ''; echo html::a(inlink('view', "release=$release->id"), $release->name) . $flagIcon; ?> diff --git a/module/projectrelease/view/view.html.php b/module/projectrelease/view/view.html.php index 742ead1ffa..9518a5a81b 100644 --- a/module/projectrelease/view/view.html.php +++ b/module/projectrelease/view/view.html.php @@ -22,7 +22,7 @@
id;?> name;?> - marker ? " " : '';?> + marker ? " " : '';?> deleted):?> release->deleted;?> diff --git a/module/release/view/browse.html.php b/module/release/view/browse.html.php index 64b047ea20..f3dec90d63 100644 --- a/module/release/view/browse.html.php +++ b/module/release/view/browse.html.php @@ -64,7 +64,7 @@ id"), sprintf('%03d', $release->id));?> marker ? " " : ''; + $flagIcon = $release->marker ? " " : ''; echo html::a(inlink('view', "release=$release->id"), $release->name) . $flagIcon; ?> diff --git a/module/release/view/view.html.php b/module/release/view/view.html.php index 673d23b267..3ec1c8f08a 100644 --- a/module/release/view/view.html.php +++ b/module/release/view/view.html.php @@ -22,7 +22,7 @@
id;?> name;?> - marker ? " " : '';?> + marker ? " " : '';?> deleted):?> release->deleted;?> From 319b97430eaca65a9b2195219be4b26fba513a2d Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Wed, 20 Jan 2021 14:32:24 +0800 Subject: [PATCH 10/11] * Adjust the style. --- module/todo/view/view.html.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/todo/view/view.html.php b/module/todo/view/view.html.php index 9485914ca1..2303ddec08 100644 --- a/module/todo/view/view.html.php +++ b/module/todo/view/view.html.php @@ -13,6 +13,7 @@ private or ($todo->private and $todo->account == $app->user->account)):?> +