Display subtask estimates in the user calendar according to the timetable
This commit is contained in:
@@ -82,7 +82,9 @@ class Calendar extends Base
|
||||
|
||||
$subtask_timeslots = $this->subtaskTimeTracking->getUserCalendarEvents($user_id, $start, $end);
|
||||
|
||||
$this->response->json(array_merge($due_tasks, $subtask_timeslots));
|
||||
$subtask_forcast = $this->config->get('subtask_forecast') == 1 ? $this->subtaskForecast->getCalendarEvents($user_id, $end) : array();
|
||||
|
||||
$this->response->json(array_merge($due_tasks, $subtask_timeslots, $subtask_forcast));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -41,7 +41,7 @@ class Config extends Base
|
||||
$values = $this->request->getValues();
|
||||
|
||||
if ($redirect === 'board') {
|
||||
$values += array('subtask_restriction' => 0, 'subtask_time_tracking' => 0);
|
||||
$values += array('subtask_restriction' => 0, 'subtask_time_tracking' => 0, 'subtask_forecast' => 0);
|
||||
}
|
||||
|
||||
if ($this->config->save($values)) {
|
||||
|
||||
Reference in New Issue
Block a user