From 8142d43057939265d15317bc051ff149553ca727 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 25 Jul 2015 13:02:20 -0400 Subject: Add settings to disable subtask timer and another to not include closed tasks into CFD --- app/Subscriber/SubtaskTimeTrackingSubscriber.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Subscriber') 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']); -- cgit v1.2.3