diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-07-07 19:29:39 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-07-07 19:29:39 -0400 |
commit | 4807f3e8a0ac2cca2706fb8215b762541982c682 (patch) | |
tree | 8d9501bdef7a15a9e6c9165266c57ece9c72a485 /app/Controller | |
parent | 58297ca3b11b9ad526a8ac344e5ac56d9e1b5a13 (diff) |
Add icon to set automatically the start date
Diffstat (limited to 'app/Controller')
-rw-r--r-- | app/Controller/Task.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/Controller/Task.php b/app/Controller/Task.php index bb859679..162b0ddd 100644 --- a/app/Controller/Task.php +++ b/app/Controller/Task.php @@ -619,4 +619,16 @@ class Task extends Base 'transitions' => $this->transition->getAllByTask($task['id']), ))); } + + /** + * Set automatically the start date + * + * @access public + */ + public function start() + { + $task = $this->getTask(); + $this->taskModification->update(array('id' => $task['id'], 'date_started' => time())); + $this->response->redirect($this->helper->url->to('task', 'show', array('project_id' => $task['project_id'], 'task_id' => $task['id']))); + } } |