diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-07-23 22:50:20 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-07-23 22:50:20 -0400 |
commit | 5884c65a02a13dd396525d0b8d1720d1c062a96e (patch) | |
tree | c480362ec790adbd2fe331164ac5b5494316e15f /app/Model/SubtaskStatusModel.php | |
parent | 24555080fd3ca8607f0a798b5a0e4be98ff131f8 (diff) |
Remove SubtaskTimeTrackingSubscriber
Diffstat (limited to 'app/Model/SubtaskStatusModel.php')
-rw-r--r-- | app/Model/SubtaskStatusModel.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/Model/SubtaskStatusModel.php b/app/Model/SubtaskStatusModel.php index 26cbb67d..c99d6055 100644 --- a/app/Model/SubtaskStatusModel.php +++ b/app/Model/SubtaskStatusModel.php @@ -63,8 +63,11 @@ class SubtaskStatusModel extends Base if (empty($subtask['user_id']) && $this->userSession->isLogged()) { $values['user_id'] = $this->userSession->getId(); + $subtask['user_id'] = $values['user_id']; } + $this->subtaskTimeTrackingModel->toggleTimer($subtask_id, $subtask['user_id'], $status); + return $this->subtaskModel->update($values) ? $status : false; } |