From 6ee6f5b99672c30d5112d01813a8b90a1ed0ab38 Mon Sep 17 00:00:00 2001 From: zhouxudong Date: Fri, 20 May 2022 05:59:51 +0000 Subject: [PATCH 01/34] * Finish task #54470. --- module/repo/view/create.html.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/module/repo/view/create.html.php b/module/repo/view/create.html.php index 3999ad4d98..8b1571bf7f 100644 --- a/module/repo/view/create.html.php +++ b/module/repo/view/create.html.php @@ -108,4 +108,20 @@ + From caaaa62cd2346ad6314614172d9dd4013f250f6d Mon Sep 17 00:00:00 2001 From: zhouxudong Date: Fri, 20 May 2022 06:11:40 +0000 Subject: [PATCH 02/34] * Finish task #54470. --- module/repo/view/create.html.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/module/repo/view/create.html.php b/module/repo/view/create.html.php index 8b1571bf7f..fd80355b99 100644 --- a/module/repo/view/create.html.php +++ b/module/repo/view/create.html.php @@ -111,11 +111,12 @@ From 8e3068d9b5c746f89c75232c72b7b79ae78da0fb Mon Sep 17 00:00:00 2001 From: tianshujie Date: Wed, 25 May 2022 14:26:21 +0800 Subject: [PATCH 26/34] * Finish task #55257. --- module/task/model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/task/model.php b/module/task/model.php index f31ee8a612..0f93821f2d 100644 --- a/module/task/model.php +++ b/module/task/model.php @@ -133,6 +133,7 @@ class taskModel extends model /* Fix Bug #2466 */ if($this->post->multiple) $task->assignedTo = ''; + if(!$this->post->multiple or count(array_filter($this->post->team)) < 1) $task->mode = ''; $this->dao->insert(TABLE_TASK)->data($task, $skip = 'gitlab,gitlabProject') ->autoCheck() ->batchCheck($requiredFields, 'notempty') From ececdba8df23df540fc3cfb9f783b4fdbbf6c39c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=B9=BF=E6=98=8E?= Date: Wed, 25 May 2022 14:46:59 +0800 Subject: [PATCH 27/34] * Fix bug #55323. --- module/custom/js/set.js | 2 +- module/custom/view/set.html.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/module/custom/js/set.js b/module/custom/js/set.js index 244532a04d..e6540cd08e 100644 --- a/module/custom/js/set.js +++ b/module/custom/js/set.js @@ -36,7 +36,7 @@ $('[name*=unitList]').change(function() $('#submit').click(function() { - if(module == 'testcase' && field == 'review' && stopSubmit) + if(module == 'testcase' && field == 'review' && stopSubmit && oldNeedReview) { var needReview = $('input:radio[name="needReview"]:checked').val(); stopSubmit = false; diff --git a/module/custom/view/set.html.php b/module/custom/view/set.html.php index 4e1a38ed76..2d4fc3c8c4 100644 --- a/module/custom/view/set.html.php +++ b/module/custom/view/set.html.php @@ -128,6 +128,7 @@ EOT; + > custom->forceReview;?> From 049c774680ef17c53139d5ccbecf5061d8146e81 Mon Sep 17 00:00:00 2001 From: zhouxudong Date: Wed, 25 May 2022 07:12:30 +0000 Subject: [PATCH 28/34] * Finish task #54983. --- module/repo/js/create.js | 16 ++++++++++++++++ module/repo/view/create.html.php | 17 ----------------- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/module/repo/js/create.js b/module/repo/js/create.js index c515bbd787..e07724a48d 100644 --- a/module/repo/js/create.js +++ b/module/repo/js/create.js @@ -7,6 +7,22 @@ $(function() $form.css('min-height', $form.height()); }) + $('#repoForm').bind('DOMNodeInserted', function(e) + { + if($("#clientLabel").length > 0) + { + if($("#client").val() !== '' && $("#client").val().indexOf(" ") == -1) + { + $("#clientLabel").css('color','#0c64eb'); + $("#client").attr('style', 'border-color: #0c64eb !important; box-shadow: 0 0 6px #0c64eb !important;'); + } + else + { + $("#client").removeAttr("style"); + } + } + }); + $('#gitlabHost').change(function() { host = $('#gitlabHost').val(); diff --git a/module/repo/view/create.html.php b/module/repo/view/create.html.php index fe6d91913d..3999ad4d98 100644 --- a/module/repo/view/create.html.php +++ b/module/repo/view/create.html.php @@ -108,21 +108,4 @@ - From 673c192017703ea25db6073d89e0f572cc702ebe Mon Sep 17 00:00:00 2001 From: liumengyi Date: Wed, 25 May 2022 15:41:27 +0800 Subject: [PATCH 29/34] * Fix bug #22664. --- module/design/control.php | 5 ++++- module/design/model.php | 2 +- module/design/view/view.html.php | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/module/design/control.php b/module/design/control.php index f7525c16ab..d7c7a47295 100644 --- a/module/design/control.php +++ b/module/design/control.php @@ -220,9 +220,12 @@ class design extends control */ public function view($designID = 0) { - $design = $this->design->getByID($designID); + $design = $this->design->getByID($designID); $productID = $this->commonAction($design->project, $design->product, $designID); + $this->session->set('revisionList', $this->app->getURI(true)); + $this->session->set('storyList', $this->app->getURI(true), 'product'); + $this->view->title = $this->lang->design->common . $this->lang->colon . $this->lang->design->view; $this->view->position[] = $this->lang->design->view; diff --git a/module/design/model.php b/module/design/model.php index 1eec165770..4a83455ffb 100644 --- a/module/design/model.php +++ b/module/design/model.php @@ -249,7 +249,7 @@ class designModel extends model $design->commit = ''; $relations = $this->loadModel('common')->getRelations('design', $designID, 'commit'); - foreach($relations as $relation) $design->commit .= html::a(helper::createLink('design', 'revision', "repoID=$relation->BID&projectID={$design->project}"), "#$relation->BID", '', "class=iframe"); + foreach($relations as $relation) $design->commit .= html::a(helper::createLink('design', 'revision', "repoID=$relation->BID&projectID={$design->project}"), "#$relation->BID"); return $this->loadModel('file')->replaceImgURL($design, 'desc'); } diff --git a/module/design/view/view.html.php b/module/design/view/view.html.php index a00c782294..1f8ded1892 100644 --- a/module/design/view/view.html.php +++ b/module/design/view/view.html.php @@ -71,7 +71,7 @@ design->story;?> - story ? html::a($this->createLink('story', 'view', "id=$design->story", '', true), zget($stories, $design->story), '',"class=iframe") : '';?> + story ? html::a($this->createLink('story', 'view', "id=$design->story"), zget($stories, $design->story)) : '';?> design->submission;?> From 0a84e5fb8103693efdb880f4db81052d7d8be2ae Mon Sep 17 00:00:00 2001 From: lanzongjun Date: Wed, 25 May 2022 15:51:48 +0800 Subject: [PATCH 30/34] * fix bug #54940 --- module/bug/view/edit.html.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/module/bug/view/edit.html.php b/module/bug/view/edit.html.php index 5b6a8e5805..885c717c4f 100644 --- a/module/bug/view/edit.html.php +++ b/module/bug/view/edit.html.php @@ -137,7 +137,11 @@ if($this->app->tab == 'project') js::set('objectID', $bug->project); bug->status;?> - bug->statusList, $bug->status);?> + bug->statusList, $bug->status); + echo html::hidden('status', $bug->status); + ?> + bug->confirmed;?> From fcf8218569a4f693d2c7ef83a1187115b1089ac7 Mon Sep 17 00:00:00 2001 From: zhouxudong Date: Wed, 25 May 2022 07:57:57 +0000 Subject: [PATCH 31/34] * Finish task #54470. --- module/repo/js/create.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/repo/js/create.js b/module/repo/js/create.js index e07724a48d..fc45001f45 100644 --- a/module/repo/js/create.js +++ b/module/repo/js/create.js @@ -13,8 +13,8 @@ $(function() { if($("#client").val() !== '' && $("#client").val().indexOf(" ") == -1) { - $("#clientLabel").css('color','#0c64eb'); - $("#client").attr('style', 'border-color: #0c64eb !important; box-shadow: 0 0 6px #0c64eb !important;'); + $("#clientLabel").css('color', '#0c64eb'); + $("#client").attr('style', 'border-color: #0c64eb !important;box-shadow: 0 0 6px #0c64eb !important;'); } else { From 36010b797f702d5bf1c43afedaac9a795aa0ad8a Mon Sep 17 00:00:00 2001 From: lanzongjun Date: Wed, 25 May 2022 15:58:26 +0800 Subject: [PATCH 32/34] * fix bug #54940 --- module/bug/view/edit.html.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/module/bug/view/edit.html.php b/module/bug/view/edit.html.php index 885c717c4f..3981eb1f15 100644 --- a/module/bug/view/edit.html.php +++ b/module/bug/view/edit.html.php @@ -137,10 +137,11 @@ if($this->app->tab == 'project') js::set('objectID', $bug->project); bug->status;?> - bug->statusList, $bug->status); - echo html::hidden('status', $bug->status); - ?> + + bug->statusList, $bug->status); + echo html::hidden('status', $bug->status); + ?> From b1ac09ae5377078cd68d28ecfe421b3dd4f68406 Mon Sep 17 00:00:00 2001 From: zhouxudong Date: Wed, 25 May 2022 08:01:10 +0000 Subject: [PATCH 33/34] * Finish task #54991. --- module/execution/view/tips.html.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/module/execution/view/tips.html.php b/module/execution/view/tips.html.php index 23c9dee70a..ef11d46ded 100644 --- a/module/execution/view/tips.html.php +++ b/module/execution/view/tips.html.php @@ -9,6 +9,13 @@