diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-08-13 17:49:27 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-08-13 17:49:27 -0400 |
commit | ffe61abc6910670c5c2c243eb82d9f5851f06c6b (patch) | |
tree | 0a1833f8a7f22ac239f8914f2e870a881e630e41 /app/Controller/TaskViewController.php | |
parent | 4ffaba2ba0dd6b5810adea1916080c3b645f3d29 (diff) |
Improve form helpers and add more hooks
Diffstat (limited to 'app/Controller/TaskViewController.php')
-rw-r--r-- | app/Controller/TaskViewController.php | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/app/Controller/TaskViewController.php b/app/Controller/TaskViewController.php index f40f8bea..e40ebdc0 100644 --- a/app/Controller/TaskViewController.php +++ b/app/Controller/TaskViewController.php @@ -22,7 +22,6 @@ class TaskViewController extends BaseController { $project = $this->projectModel->getByToken($this->request->getStringParam('token')); - // Token verification if (empty($project)) { throw AccessForbiddenException::getInstance()->withoutLayout(); } @@ -63,19 +62,9 @@ class TaskViewController extends BaseController $task = $this->getTask(); $subtasks = $this->subtaskModel->getAll($task['id']); - $values = array( - 'id' => $task['id'], - 'date_started' => $task['date_started'], - 'time_estimated' => $task['time_estimated'] ?: '', - 'time_spent' => $task['time_spent'] ?: '', - ); - - $values = $this->dateParser->format($values, array('date_started'), $this->dateParser->getUserDateTimeFormat()); - $this->response->html($this->helper->layout->task('task/show', array( 'task' => $task, 'project' => $this->projectModel->getById($task['project_id']), - 'values' => $values, 'files' => $this->taskFileModel->getAllDocuments($task['id']), 'images' => $this->taskFileModel->getAllImages($task['id']), 'comments' => $this->commentModel->getAll($task['id'], $this->userSession->getCommentSorting()), |