From 92fb280aa11b4bd9f965c4536c34831b59f51cda Mon Sep 17 00:00:00 2001 From: tianshujie Date: Thu, 18 Dec 2025 13:23:37 +0800 Subject: [PATCH 1/4] * [bug#68221,done,1h] fix set kanban show start action while the status is doing. --- module/task/model.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/module/task/model.php b/module/task/model.php index 0b65701f4d..09c22669f8 100755 --- a/module/task/model.php +++ b/module/task/model.php @@ -344,6 +344,7 @@ class taskModel extends model $this->afterChangeStatus($oldTask, $changes, $action, $output); /* Send Webhook notifications and synchronize status to execution, project and program. */ + $oldExecution = $this->loadModel('execution')->fetchByID($oldTask->execution); $this->executeHooks($oldTask->id); $this->loadModel('common')->syncPPEStatus($oldTask->id); @@ -354,6 +355,12 @@ class taskModel extends model if($response) return $response; } + if($oldExecution->status != 'doing') + { + $inLiteKanban = $this->config->vision == 'lite' && $this->app->tab == 'project' && $this->session->kanbanview == 'kanban'; + if(($this->app->tab == 'execution' || $inLiteKanban) && $oldExecution->type == 'kanban') return array('result' => 'success', 'message' => $this->lang->saveSuccess, 'load' => true); + } + return true; } From 383d55df35083eb825e318046695d90364ad75a9 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Thu, 18 Dec 2025 13:28:26 +0800 Subject: [PATCH 2/4] * [refac] optimize code. --- module/task/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/task/model.php b/module/task/model.php index 09c22669f8..47c6430a12 100755 --- a/module/task/model.php +++ b/module/task/model.php @@ -355,7 +355,7 @@ class taskModel extends model if($response) return $response; } - if($oldExecution->status != 'doing') + if($oldExecution->status == 'wait') { $inLiteKanban = $this->config->vision == 'lite' && $this->app->tab == 'project' && $this->session->kanbanview == 'kanban'; if(($this->app->tab == 'execution' || $inLiteKanban) && $oldExecution->type == 'kanban') return array('result' => 'success', 'message' => $this->lang->saveSuccess, 'load' => true); From 8576ab0c1cb3b1d0f5db5acef53e25604cfd705f Mon Sep 17 00:00:00 2001 From: tianshujie Date: Thu, 18 Dec 2025 15:14:03 +0800 Subject: [PATCH 3/4] * [unittest] fix afterstart error. --- module/task/test/model/afterstart.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/task/test/model/afterstart.php b/module/task/test/model/afterstart.php index a5ef11427f..1dbf21472c 100755 --- a/module/task/test/model/afterstart.php +++ b/module/task/test/model/afterstart.php @@ -4,6 +4,7 @@ include dirname(__FILE__, 5) . '/test/lib/init.php'; include dirname(__FILE__, 2) . '/lib/task.unittest.class.php'; su('admin'); +zenData('bug')->gen(5); zenData('project')->loadYaml('project')->gen(6); zenData('task')->loadYaml('task')->gen(9); zenData('taskteam')->loadYaml('taskteam')->gen(6); From e3ba5d324bd01d460a2e998d860067a503fe817b Mon Sep 17 00:00:00 2001 From: tianshujie Date: Thu, 18 Dec 2025 16:05:46 +0800 Subject: [PATCH 4/4] * [bug#68348,done,0.1h] add title for detail page. --- lib/zin/wg/detail/v1.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/zin/wg/detail/v1.php b/lib/zin/wg/detail/v1.php index 9cfb643163..d8856bda6c 100644 --- a/lib/zin/wg/detail/v1.php +++ b/lib/zin/wg/detail/v1.php @@ -214,6 +214,7 @@ CSS; set::object($object), set::title($title), set::titleClass('text-lg text-clip font-bold'), + set::titleProps(array('title' => $title)), set::type($objectType), set::color($color), set::parentTitleClass('text-lg text-clip font-bold'),