From dd8a28293b56143fa1ac80d12cdba2fd484c302c Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Thu, 5 Sep 2024 10:07:13 +0800 Subject: [PATCH] * [task#127983,0.5h,0h] Fix error occurred when building research subtasks in batches. --- 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 154d72956d..60c592f3df 100755 --- a/module/task/model.php +++ b/module/task/model.php @@ -509,7 +509,7 @@ class taskModel extends model if(!$taskID) return false; /* Update Kanban and story stage. */ - if($task->story) $this->story->setStage($task->story); + if(!empty($task->story)) $this->story->setStage($task->story); $this->updateKanbanForBatchCreate($taskID, $executionID, $laneID, (int)$columnID); $taskIdList[$taskID] = $taskID;