From 873df65437f2c86defa8b2dcb6421445ac06f013 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Wed, 1 Jun 2022 16:23:25 +0800 Subject: [PATCH 1/2] * Fix bug #50321. --- module/common/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/common/model.php b/module/common/model.php index 77b1299f44..c5b10bbe3f 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -1703,8 +1703,8 @@ EOD; $executionList = $app->dbh->query("SELECT id,name,parent FROM " . TABLE_EXECUTION . " WHERE `project` = '{$object->project}' AND `deleted` = '0' $userCondition $orderBy")->fetchAll(); foreach($executionList as $execution) { - if($execution->id == $executionID) continue; if(isset($executionPairs[$execution->parent])) unset($executionPairs[$execution->parent]); + if($execution->id == $executionID) continue; $executionPairs[$execution->id] = $execution->name; } From 06a0bb6f031562b6f15c43e505df66e53ba9e1c9 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Wed, 1 Jun 2022 16:27:03 +0800 Subject: [PATCH 2/2] * Fix bug #23110, #23109. --- module/execution/js/taskkanban.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/execution/js/taskkanban.js b/module/execution/js/taskkanban.js index e952b470f0..ef00356145 100644 --- a/module/execution/js/taskkanban.js +++ b/module/execution/js/taskkanban.js @@ -505,11 +505,11 @@ if(!window.kanbanDropRules) }, task: { - 'wait': ['developing', 'developed', 'canceled', 'closed'], + 'wait': ['developing', 'developed', 'canceled'], 'developing': ['developed', 'pause', 'canceled'], 'developed': ['developing', 'closed'], 'pause': ['developing'], - 'canceled': ['developing'], + 'canceled': ['developing', 'closed'], 'closed': ['developing'], } }