diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-03-25 17:41:41 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-03-25 17:41:41 -0400 |
commit | 354e37971d43d3b62d8f4e2a23eff09e88525627 (patch) | |
tree | ab7ded1870bbdec219909cf5f5c9d50549d2c9a1 /app/Controller/Gantt.php | |
parent | 13d5bd8e48bd6c0109d1272da58a8879bf9a6737 (diff) |
Unification of project header
Diffstat (limited to 'app/Controller/Gantt.php')
-rw-r--r-- | app/Controller/Gantt.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/app/Controller/Gantt.php b/app/Controller/Gantt.php index 9ffa277f..02ee946c 100644 --- a/app/Controller/Gantt.php +++ b/app/Controller/Gantt.php @@ -54,8 +54,9 @@ class Gantt extends Base */ public function project() { - $params = $this->getProjectFilters('gantt', 'project'); - $filter = $this->taskFilterGanttFormatter->search($params['filters']['search'])->filterByProject($params['project']['id']); + $project = $this->getProject(); + $search = $this->helper->projectHeader->getSearchQuery($project); + $filter = $this->taskFilterGanttFormatter->search($search)->filterByProject($project['id']); $sorting = $this->request->getStringParam('sorting', 'board'); if ($sorting === 'date') { @@ -64,8 +65,10 @@ class Gantt extends Base $filter->getQuery()->asc('column_position')->asc(TaskModel::TABLE.'.position'); } - $this->response->html($this->helper->layout->app('gantt/project', $params + array( - 'users_list' => $this->projectUserRole->getAssignableUsersList($params['project']['id'], false), + $this->response->html($this->helper->layout->app('gantt/project', array( + 'project' => $project, + 'title' => $project['name'], + 'description' => $this->helper->projectHeader->getDescription($project), 'sorting' => $sorting, 'tasks' => $filter->format(), ))); |