From 8d9b87bb6ee084d2ee71e8ca17cf2537dba87d7f Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Mon, 30 Mar 2015 21:58:16 -0400 Subject: Avoid code duplication in pull-request #746 --- app/Controller/Task.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'app/Controller') 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 * -- cgit v1.2.3