From f91f3214c12e315afd8984653ea2d9db8408793d Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Tue, 8 Mar 2016 22:02:42 -0500 Subject: Always display project name and task title in task views --- app/Controller/Subtask.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'app/Controller/Subtask.php') diff --git a/app/Controller/Subtask.php b/app/Controller/Subtask.php index 8ca0ce92..bc2108f9 100644 --- a/app/Controller/Subtask.php +++ b/app/Controller/Subtask.php @@ -23,6 +23,7 @@ class Subtask extends Base 'project' => $this->getProject(), 'subtasks' => $this->subtask->getAll($task['id']), 'editable' => true, + 'show_title' => true, ))); } @@ -42,7 +43,7 @@ class Subtask extends Base ); } - $this->response->html($this->helper->layout->task('subtask/create', array( + $this->response->html($this->template->render('subtask/create', array( 'values' => $values, 'errors' => $errors, 'users_list' => $this->projectUserRole->getAssignableUsersList($task['project_id']), @@ -89,7 +90,7 @@ class Subtask extends Base $task = $this->getTask(); $subtask = $this->getSubTask(); - $this->response->html($this->helper->layout->task('subtask/edit', array( + $this->response->html($this->template->render('subtask/edit', array( 'values' => empty($values) ? $subtask : $values, 'errors' => $errors, 'users_list' => $this->projectUserRole->getAssignableUsersList($task['project_id']), @@ -135,7 +136,7 @@ class Subtask extends Base $task = $this->getTask(); $subtask = $this->getSubtask(); - $this->response->html($this->helper->layout->task('subtask/remove', array( + $this->response->html($this->template->render('subtask/remove', array( 'subtask' => $subtask, 'task' => $task, ))); -- cgit v1.2.3