From 544f9924241f9b2caaf83ead203161ea41e5f1cf Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Wed, 5 Mar 2014 22:27:48 -0500 Subject: Add a 'due date' field and display the number of comments on the board --- controllers/task.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'controllers') diff --git a/controllers/task.php b/controllers/task.php index 89e1ee6c..fba4d4f5 100644 --- a/controllers/task.php +++ b/controllers/task.php @@ -216,6 +216,10 @@ class Task extends Base if (! $task) $this->notfound(); $this->checkProjectPermissions($task['project_id']); + if (! empty($task['date_due'])) { + $task['date_due'] = date(t('m/d/Y'), $task['date_due']); + } + $this->response->html($this->template->layout('task_edit', array( 'errors' => array(), 'values' => $task, -- cgit v1.2.3