summaryrefslogtreecommitdiff
path: root/app/Model/SubtaskStatusModel.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-07-23 22:50:20 -0400
committerFrederic Guillot <fred@kanboard.net>2016-07-23 22:50:20 -0400
commit5884c65a02a13dd396525d0b8d1720d1c062a96e (patch)
treec480362ec790adbd2fe331164ac5b5494316e15f /app/Model/SubtaskStatusModel.php
parent24555080fd3ca8607f0a798b5a0e4be98ff131f8 (diff)
Remove SubtaskTimeTrackingSubscriber
Diffstat (limited to 'app/Model/SubtaskStatusModel.php')
-rw-r--r--app/Model/SubtaskStatusModel.php3
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;
}