summaryrefslogtreecommitdiff
path: root/controllers
diff options
context:
space:
mode:
authorFrédéric Guillot <contact@fredericguillot.com>2014-03-05 22:27:48 -0500
committerFrédéric Guillot <contact@fredericguillot.com>2014-03-05 22:27:48 -0500
commit544f9924241f9b2caaf83ead203161ea41e5f1cf (patch)
treedcb5ba8a202fee673e395184795f570fd7c905ae /controllers
parent1e994f34486da72662ff39f1c3e130e4480e30ab (diff)
Add a 'due date' field and display the number of comments on the board
Diffstat (limited to 'controllers')
-rw-r--r--controllers/task.php4
1 files changed, 4 insertions, 0 deletions
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,