Fix regression: stay on the same page when a task is closed

This commit is contained in:
Frederic Guillot
2017-01-23 21:05:59 -05:00
parent 10d96bfd66
commit 5315e4961e
5 changed files with 13 additions and 9 deletions

View File

@@ -52,11 +52,11 @@ class TaskStatusController extends BaseController
$this->flash->failure($failure_message);
}
return $this->response->redirect($this->helper->url->to('TaskViewController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])), true);
$this->response->redirect($this->helper->url->to('TaskViewController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])), true);
} else {
$this->response->html($this->template->render($template, array(
'task' => $task,
)));
}
return $this->response->html($this->template->render($template, array(
'task' => $task,
)));
}
}