From 810fce9f91d412d3e147b6404f2cd30977c453c4 Mon Sep 17 00:00:00 2001 From: Yagami <976204163@qq.com> Date: Thu, 1 Apr 2021 13:42:10 +0800 Subject: [PATCH 1/3] * Fix todo bug. --- module/user/view/featurebar.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/user/view/featurebar.html.php b/module/user/view/featurebar.html.php index 8a22b15661..a96838e466 100755 --- a/module/user/view/featurebar.html.php +++ b/module/user/view/featurebar.html.php @@ -10,7 +10,7 @@ $label = "{$lang->user->schedule}"; $active = $methodName == 'todo' ? ' btn-active-text' : ''; - common::printLink('user', 'todo', "userID={$user->id}", $label, '', "class='btn btn-link $active'"); + common::printLink('user', 'todo', "userID={$user->id}&type=all", $label, '', "class='btn btn-link $active'"); $label = "{$lang->user->task}"; $active = $methodName == 'task' ? ' btn-active-text' : ''; From a6fe7fdf341f26e706517ea6877620cbd0163cef Mon Sep 17 00:00:00 2001 From: Yagami <976204163@qq.com> Date: Thu, 1 Apr 2021 13:43:57 +0800 Subject: [PATCH 2/3] * Fix upgrade view. --- module/upgrade/view/mergeprogram.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/upgrade/view/mergeprogram.html.php b/module/upgrade/view/mergeprogram.html.php index 69482dfe59..dcc3c5b431 100644 --- a/module/upgrade/view/mergeprogram.html.php +++ b/module/upgrade/view/mergeprogram.html.php @@ -43,7 +43,7 @@ $sprint):?> - upgrade->project} #{$sprint->id} {$sprint->name}" . html::hidden("sprints[]", $sprint->id);?> + name}" . html::hidden("sprints[]", $sprint->id);?> projects, '', "class='form-control chosen'");?> From a700423fa0b377489fbdfa29fcd3ebfb601c14d8 Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Thu, 1 Apr 2021 13:46:14 +0800 Subject: [PATCH 3/3] * Modify the display problem of creating and editing project permissions. --- module/project/js/create.js | 4 ++-- module/project/js/edit.js | 1 + module/project/view/create.html.php | 2 +- module/project/view/edit.html.php | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/module/project/js/create.js b/module/project/js/create.js index d85cf06508..4f83bff8b5 100644 --- a/module/project/js/create.js +++ b/module/project/js/create.js @@ -82,9 +82,9 @@ function addNewProduct(obj) * @access public * @return void */ -function setAclList(projectID) +function setAclList(programID) { - if(projectID != 0) + if(programID != 0) { $('.aclBox').html($('#programAcl').html()); } diff --git a/module/project/js/edit.js b/module/project/js/edit.js index 115059a858..f9d3c0e2bf 100644 --- a/module/project/js/edit.js +++ b/module/project/js/edit.js @@ -3,6 +3,7 @@ $(function() $('#parent').change(function() { var programID = $(this).val(); + setAclList(programID); /* Determine whether the project can change the project set. */ link = createLink('project', 'ajaxCheckProduct', 'programID=' + programID + '&projectID=' + projectID); diff --git a/module/project/view/create.html.php b/module/project/view/create.html.php index 8916e61159..9ae8e18e97 100644 --- a/module/project/view/create.html.php +++ b/module/project/view/create.html.php @@ -200,6 +200,6 @@ project->aclList, $acl, "onclick='setWhite(this.value);'", 'block'));?> diff --git a/module/project/view/edit.html.php b/module/project/view/edit.html.php index 04bf2191c7..905b5b77f1 100644 --- a/module/project/view/edit.html.php +++ b/module/project/view/edit.html.php @@ -173,7 +173,7 @@ project->aclList, $project->acl == 'project' ? 'private' : 'open', "onclick='setWhite(this.value);'", 'block'));?>