diff options
| author | Frederic Guillot <fred@kanboard.net> | 2015-03-14 20:53:33 -0400 |
|---|---|---|
| committer | Frederic Guillot <fred@kanboard.net> | 2015-03-14 20:53:33 -0400 |
| commit | 253996901a10918e3207d46839cdfdc90d200e72 (patch) | |
| tree | 5e359471d8e7de963277c37c6ff9611181505975 /app/Controller/Config.php | |
| parent | 4700139a86d1ef44eabe43edb5a4abff9c645811 (diff) | |
Calculate the time spent based on the timetable
Diffstat (limited to 'app/Controller/Config.php')
| -rw-r--r-- | app/Controller/Config.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/Controller/Config.php b/app/Controller/Config.php index 01c7ad53..bee897be 100644 --- a/app/Controller/Config.php +++ b/app/Controller/Config.php @@ -38,7 +38,11 @@ class Config extends Base { if ($this->request->isPost()) { - $values = $this->request->getValues() + array('subtask_restriction' => 0, 'subtask_time_tracking' => 0); + $values = $this->request->getValues(); + + if ($redirect === 'board') { + $values += array('subtask_restriction' => 0, 'subtask_time_tracking' => 0); + } if ($this->config->save($values)) { $this->config->reload(); |
