diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-09-20 22:18:56 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-09-20 22:18:56 -0400 |
commit | 689687dd4ee186cb9cf5d0230b4648e242c53b10 (patch) | |
tree | 3d26bc2079c6eb45790ba604b3a79997be4768ab /app/Controller/Gantt.php | |
parent | f579663adcbc0b202d9a068d734e8f9284dc3a37 (diff) |
Add formatters
Diffstat (limited to 'app/Controller/Gantt.php')
-rw-r--r-- | app/Controller/Gantt.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Controller/Gantt.php b/app/Controller/Gantt.php index a2d3f363..879ab377 100644 --- a/app/Controller/Gantt.php +++ b/app/Controller/Gantt.php @@ -25,7 +25,7 @@ class Gantt extends Base } $this->response->html($this->template->layout('gantt/projects', array( - 'projects' => $this->project->getGanttBars($project_ids), + 'projects' => $this->projectGanttFormatter->filter($project_ids)->format(), 'title' => t('Gantt chart for all projects'), 'board_selector' => $this->projectPermission->getAllowedProjects($this->userSession->getId()), ))); @@ -57,7 +57,7 @@ class Gantt extends Base public function project() { $params = $this->getProjectFilters('gantt', 'project'); - $filter = $this->taskFilter->search($params['filters']['search'])->filterByProject($params['project']['id']); + $filter = $this->taskFilterGanttFormatter->search($params['filters']['search'])->filterByProject($params['project']['id']); $sorting = $this->request->getStringParam('sorting', 'board'); if ($sorting === 'date') { @@ -70,7 +70,7 @@ class Gantt extends Base $this->response->html($this->template->layout('gantt/project', $params + array( 'users_list' => $this->projectPermission->getMemberList($params['project']['id'], false), 'sorting' => $sorting, - 'tasks' => $filter->toGanttBars(), + 'tasks' => $filter->format(), ))); } |