From 5167a182d08b0f96f66b8e90ffb1e411b9be2eb5 Mon Sep 17 00:00:00 2001 From: wangyuting Date: Fri, 30 May 2025 02:39:57 +0000 Subject: [PATCH] * [bug#63016,done,0.2h,0h] Fix create child template task error. --- module/task/model.php | 1 + module/task/zen.php | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/module/task/model.php b/module/task/model.php index ab8dc5508a..22c22929d9 100755 --- a/module/task/model.php +++ b/module/task/model.php @@ -981,6 +981,7 @@ class taskModel extends model if($execution && $this->isNoStoryExecution($execution)) $requiredFields = str_replace(',story,', ',', $requiredFields); /* Insert task data. */ + $task->isTpl = $execution->isTpl; if(empty($task->assignedTo)) unset($task->assignedDate); $this->dao->insert(TABLE_TASK)->data($task, 'docVersions') ->checkIF($task->estimate != '', 'estimate', 'float') diff --git a/module/task/zen.php b/module/task/zen.php index 36f5444929..d1e0b165aa 100644 --- a/module/task/zen.php +++ b/module/task/zen.php @@ -699,7 +699,6 @@ class taskZen extends task $task = form::data($formConfig)->setDefault('execution', $executionID) ->setDefault('project', $execution->project) ->setDefault('left', 0) - ->setDefault('isTpl', $execution->isTpl) ->setIF($this->post->estimate, 'left', $this->post->estimate) ->setIF($this->post->mode, 'mode', $this->post->mode) ->setIF($this->post->story, 'storyVersion', $this->post->story ? $this->loadModel('story')->getVersion((int)$this->post->story) : 1)