From 0976ce4cd565d99e4dbe2727fd517847ea2cb3d5 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Fri, 22 Jul 2022 10:09:27 +0800 Subject: [PATCH 01/10] * Fix bug #25567. --- module/story/view/edit.html.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/story/view/edit.html.php b/module/story/view/edit.html.php index d3bed5546f..ced03a5862 100644 --- a/module/story/view/edit.html.php +++ b/module/story/view/edit.html.php @@ -216,7 +216,8 @@ story->assignedTo;?> - assignedTo, 'class="form-control chosen"');?> + status == 'closed' ? $users + array('closed' => 'Closed') : $users;?> + assignedTo, 'class="form-control chosen"');?> From 5818db887ff8b2168a2d8b6d277c7ce6510b15fd Mon Sep 17 00:00:00 2001 From: tianshujie Date: Fri, 22 Jul 2022 10:28:42 +0800 Subject: [PATCH 02/10] * Fix bug #25122. --- module/task/model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/task/model.php b/module/task/model.php index 6e4bbfd708..6f8d4795ac 100644 --- a/module/task/model.php +++ b/module/task/model.php @@ -1823,7 +1823,7 @@ class taskModel extends model if(!empty($task->team)) { - $myConsumed = $task->team[$task->assignedTo]->consumed; + $myConsumed = $task->team[$this->app->user->account]->consumed; $newTeamInfo = new stdClass(); $newTeamInfo->consumed = $myConsumed + $consumed; @@ -1831,7 +1831,7 @@ class taskModel extends model $this->dao->update(TABLE_TEAM)->data($newTeamInfo) ->where('root')->eq($taskID) ->andWhere('type')->eq('task') - ->andWhere('account')->eq($task->assignedTo) + ->andWhere('account')->eq($this->app->user->account) ->exec(); $data = $this->computeHours4Multiple($task, $data); From ba22c27e28759c97c7a6497dd06c90115beb8971 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Fri, 22 Jul 2022 10:35:37 +0800 Subject: [PATCH 03/10] * Fix bug #24181. --- module/bug/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/bug/control.php b/module/bug/control.php index f7e54492da..1ef0d988ce 100755 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -108,7 +108,7 @@ class bug extends control /* Set browse type. */ $browseType = strtolower($browseType); - if($this->cookie->preProductID != $productID or $this->cookie->preBranch != $branch or $browseType == 'bybranch') + if($this->cookie->preProductID != $productID or ($this->cookie->preBranch != $branch and $product->type != 'normal' and $branch != 'all') or $browseType == 'bybranch') { $_COOKIE['bugModule'] = 0; setcookie('bugModule', 0, 0, $this->config->webRoot, '', $this->config->cookieSecure, false); From 374ec6f55d6541581cb98d76072f16c02fb123db Mon Sep 17 00:00:00 2001 From: liumengyi Date: Fri, 22 Jul 2022 11:06:51 +0800 Subject: [PATCH 04/10] * Fix bug #25554. --- module/action/model.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/action/model.php b/module/action/model.php index 5e203ed3de..794cafde92 100755 --- a/module/action/model.php +++ b/module/action/model.php @@ -1094,11 +1094,12 @@ class actionModel extends model { if(empty($this->app->user->rights['acls']['actions'])) return ''; + $canViewPrograms = empty($this->app->user->view->programs) ? '0' : $this->app->user->view->programs; foreach($this->app->user->rights['acls']['actions'] as $moduleName => $actions) { if(isset($this->lang->mainNav->$moduleName) and !empty($this->app->user->rights['acls']['views']) and !isset($this->app->user->rights['acls']['views'][$moduleName])) continue; - $canViewPrograms = $moduleName == 'program' ? "`objectID` in ({$this->app->user->view->programs}) and " : ''; - $actionCondition .= "($canViewPrograms `objectType` = '$moduleName' and `action` " . helper::dbIN($actions) . ") or "; + $programQuery = $moduleName == 'program' ? "`objectID` in ($canViewPrograms) and " : ''; + $actionCondition .= "($programQuery `objectType` = '$moduleName' and `action` " . helper::dbIN($actions) . ") or "; } $actionCondition = trim($actionCondition, 'or '); } From c820d66059c920db30090aae60244bf484c146c6 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Fri, 22 Jul 2022 11:36:41 +0800 Subject: [PATCH 05/10] * fix bug #25557. --- module/programplan/view/gantt.html.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/module/programplan/view/gantt.html.php b/module/programplan/view/gantt.html.php index 86c3cfe0db..03992508db 100644 --- a/module/programplan/view/gantt.html.php +++ b/module/programplan/view/gantt.html.php @@ -15,10 +15,6 @@ createLink('programplan', 'ajaxCustom'));?> @@ -90,7 +91,8 @@ form {display: block; margin-top: 0em; margin-block-end: 1em;}
- + +