summaryrefslogtreecommitdiff
path: root/app/Subscriber
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-07-25 13:02:20 -0400
committerFrederic Guillot <fred@kanboard.net>2015-07-25 13:02:20 -0400
commit8142d43057939265d15317bc051ff149553ca727 (patch)
treeb4172f7dfd06702e9eac32b59a10a2f8669adbb4 /app/Subscriber
parent392a75fa0e76530c176d78b4e17a2834286616e3 (diff)
Add settings to disable subtask timer and another to not include closed tasks into CFD
Diffstat (limited to 'app/Subscriber')
-rw-r--r--app/Subscriber/SubtaskTimeTrackingSubscriber.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Subscriber/SubtaskTimeTrackingSubscriber.php b/app/Subscriber/SubtaskTimeTrackingSubscriber.php
index 02f14c40..e45b2c93 100644
--- a/app/Subscriber/SubtaskTimeTrackingSubscriber.php
+++ b/app/Subscriber/SubtaskTimeTrackingSubscriber.php
@@ -28,7 +28,7 @@ class SubtaskTimeTrackingSubscriber extends \Core\Base implements EventSubscribe
public function logStartEnd(SubtaskEvent $event)
{
- if (isset($event['status'])) {
+ if (isset($event['status']) && $this->config->get('subtask_time_tracking') == 1) {
$subtask = $this->subtask->getById($event['id']);