* [refac bug #58198] Set realStarted field when move task.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user