Avoid code duplication in pull-request #746

This commit is contained in:
Frederic Guillot
2015-03-30 21:58:16 -04:00
parent 6d80f0b466
commit 8d9b87bb6e
7 changed files with 69 additions and 89 deletions

View File

@@ -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
*