diff options
Diffstat (limited to 'app/Model/Subtask.php')
-rw-r--r-- | app/Model/Subtask.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/Model/Subtask.php b/app/Model/Subtask.php index a869ae91..ee000e32 100644 --- a/app/Model/Subtask.php +++ b/app/Model/Subtask.php @@ -346,6 +346,10 @@ class Subtask extends Base 'task_id' => $subtask['task_id'], ); + if (empty($subtask['user_id']) && $this->userSession->isLogged()) { + $values['user_id'] = $this->userSession->getId(); + } + return $this->update($values); } |