From 4e07ad6555bee33c6e48992f8f8e56706aff7c58 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Fri, 5 Feb 2016 18:30:16 -0500 Subject: Improve subtask toggle status and timer --- app/Controller/Timer.php | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 app/Controller/Timer.php (limited to 'app/Controller/Timer.php') diff --git a/app/Controller/Timer.php b/app/Controller/Timer.php deleted file mode 100644 index 0267fcdd..00000000 --- a/app/Controller/Timer.php +++ /dev/null @@ -1,34 +0,0 @@ -request->getIntegerParam('project_id'); - $task_id = $this->request->getIntegerParam('task_id'); - $subtask_id = $this->request->getIntegerParam('subtask_id'); - $timer = $this->request->getStringParam('timer'); - - if ($timer === 'start') { - $this->subtaskTimeTracking->logStartTime($subtask_id, $this->userSession->getId()); - } elseif ($timer === 'stop') { - $this->subtaskTimeTracking->logEndTime($subtask_id, $this->userSession->getId()); - $this->subtaskTimeTracking->updateTaskTimeTracking($task_id); - } - - $this->response->redirect($this->helper->url->to('task', 'show', array('project_id' => $project_id, 'task_id' => $task_id)).'#subtasks'); - } -} -- cgit v1.2.3