Add comments sorting

This commit is contained in:
Frederic Guillot
2015-10-11 18:21:54 -04:00
parent c77c9443e9
commit ffe615d201
10 changed files with 79 additions and 14 deletions

View File

@@ -68,7 +68,7 @@ class Task extends Base
'project' => $this->project->getById($task['project_id']),
'files' => $this->file->getAllDocuments($task['id']),
'images' => $this->file->getAllImages($task['id']),
'comments' => $this->comment->getAll($task['id']),
'comments' => $this->comment->getAll($task['id'], $this->userSession->getCommentSorting()),
'subtasks' => $subtasks,
'links' => $this->taskLink->getAllGroupedByLabel($task['id']),
'task' => $task,