fix: 修复重复周期 子任务没有复制过去

This commit is contained in:
weifashi
2025-05-28 22:11:56 +08:00
parent 3f11770baa
commit 9509bd1510
4 changed files with 25 additions and 4 deletions

View File

@@ -1144,9 +1144,6 @@ class ProjectTask extends AbstractModel
*/
public function copyTask()
{
if ($this->parent_id > 0) {
throw new ApiException('子任务禁止复制');
}
return AbstractModel::transaction(function() {
// 复制任务
$task = $this->replicate();