diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-03-30 21:58:16 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-03-30 21:58:16 -0400 |
commit | 8d9b87bb6ee084d2ee71e8ca17cf2537dba87d7f (patch) | |
tree | de51fb030f43c88f4de08a907a9a3971a2dedd23 /app/Controller | |
parent | 6d80f0b466c2be6f2127f6e6124c3d4e21be38d3 (diff) |
Avoid code duplication in pull-request #746
Diffstat (limited to 'app/Controller')
-rw-r--r-- | app/Controller/Task.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/Controller/Task.php b/app/Controller/Task.php index 9bd6e711..3c5b5c39 100644 --- a/app/Controller/Task.php +++ b/app/Controller/Task.php @@ -92,14 +92,15 @@ class Task extends Base public function activites() { $task = $this->getTask(); - $this->response->html($this->taskLayout('task/events', array( + + $this->response->html($this->taskLayout('task/activity', array( 'title' => $task['title'], 'task' => $task, 'ajax' => $this->request->isAjax(), - 'events' => $this->projectActivity->getTasks([$task['id']]), + 'events' => $this->projectActivity->getTask($task['id']), ))); } - + /** * Display a form to create a new task * |