From e4c9dccd87f2956b64ea1d488b0ede4ab007a383 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Mon, 22 Jan 2024 14:57:05 +0800 Subject: [PATCH] * Fix bug #44565. --- module/task/zen.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/task/zen.php b/module/task/zen.php index ad39eb7d2e..891e15ee74 100644 --- a/module/task/zen.php +++ b/module/task/zen.php @@ -707,6 +707,7 @@ class taskZen extends task if($postData->selectTestStory == 'off') return array(); $testTasks = array(); + $execution = $this->loadModel('execution')->getByID($executionID); foreach($postData->testStory as $key => $storyID) { if(empty($storyID)) continue; @@ -723,6 +724,7 @@ class taskZen extends task $task->left = !empty($postData->testEstimate[$key]) ? (float)$postData->testEstimate[$key] : 0; $task->type = 'test'; /* Setting the task type to test to prevent duplicate tasks from being created. */ $task->vision = $this->config->vision; + $task->project = $execution->project; $testTasks[$storyID] = $task; }