diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-06-24 20:39:06 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-06-24 20:39:06 -0400 |
commit | 6efac784fcc1a2e83bb7b43fc7841448b5975cba (patch) | |
tree | a083b3c8b86deca9c4f23bcb15cfafeec86924e8 /app/Subscriber | |
parent | 58c96b8c4ec3f326b25e6b55f133fc067345cd57 (diff) |
Add timer for subtasks and remove settings for subtask time tracking
Diffstat (limited to 'app/Subscriber')
-rw-r--r-- | app/Subscriber/SubtaskTimeTrackingSubscriber.php (renamed from app/Subscriber/SubtaskTimesheetSubscriber.php) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Subscriber/SubtaskTimesheetSubscriber.php b/app/Subscriber/SubtaskTimeTrackingSubscriber.php index fdaf442f..02f14c40 100644 --- a/app/Subscriber/SubtaskTimesheetSubscriber.php +++ b/app/Subscriber/SubtaskTimeTrackingSubscriber.php @@ -6,7 +6,7 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Model\Subtask; use Event\SubtaskEvent; -class SubtaskTimesheetSubscriber extends \Core\Base implements EventSubscriberInterface +class SubtaskTimeTrackingSubscriber extends \Core\Base implements EventSubscriberInterface { public static function getSubscribedEvents() { @@ -28,7 +28,7 @@ class SubtaskTimesheetSubscriber extends \Core\Base implements EventSubscriberIn public function logStartEnd(SubtaskEvent $event) { - if ($this->config->get('subtask_time_tracking') == 1 && isset($event['status'])) { + if (isset($event['status'])) { $subtask = $this->subtask->getById($event['id']); |