diff --git a/module/project/model.php b/module/project/model.php index 535e4879d3..f18d37645d 100644 --- a/module/project/model.php +++ b/module/project/model.php @@ -1336,7 +1336,8 @@ class projectModel extends model } $data->status = $task->consumed > 0 ? 'doing' : 'wait'; - $this->dao->update(TABLE_TASK)->data($data)->where('id')->in($this->post->tasks)->orWhere('parent')->in($this->post->tasks)->exec(); + $this->dao->update(TABLE_TASK)->data($data)->where('id')->in($this->post->tasks)->exec(); + $this->dao->update(TABLE_TASK)->set('project')->eq($projectID)->where('parent')->in($this->post->tasks)->exec(); $this->loadModel('action')->create('task', $task->id, 'moved', '', $task->project); }