From aae5da640ba1fa04161f6e99080f22063f707413 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Mon, 23 Dec 2024 13:57:34 +0800 Subject: [PATCH] * [refac bug #58198] Set realStarted field when move task. --- module/execution/model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/execution/model.php b/module/execution/model.php index f73d9592cf..51faf1b85c 100755 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -2396,6 +2396,7 @@ class executionModel extends model if($task->isParent) $this->dao->update(TABLE_TASK)->data($data)->where('parent')->eq($task->id)->exec(); $data->status = $task->consumed > 0 ? 'doing' : 'wait'; + if($data->status == 'wait') $data->realStarted = ''; $this->dao->update(TABLE_TASK)->data($data)->where('id')->eq($task->id)->exec(); $this->action->create('task', $task->id, 'moved', '', $task->execution); }