summaryrefslogtreecommitdiff
path: root/app/Controller/Subtask.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controller/Subtask.php')
-rw-r--r--app/Controller/Subtask.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Controller/Subtask.php b/app/Controller/Subtask.php
index a103f999..63ca6303 100644
--- a/app/Controller/Subtask.php
+++ b/app/Controller/Subtask.php
@@ -39,6 +39,7 @@ class Subtask extends Base
$this->response->html($this->taskLayout('subtask_create', array(
'values' => array(
'task_id' => $task['id'],
+ 'another_subtask' => $this->request->getIntegerParam('another_subtask', 0)
),
'errors' => array(),
'users_list' => $this->projectPermission->getUsersList($task['project_id']),
@@ -70,7 +71,7 @@ class Subtask extends Base
}
if (isset($values['another_subtask']) && $values['another_subtask'] == 1) {
- $this->response->redirect('?controller=subtask&action=create&task_id='.$task['id']);
+ $this->response->redirect('?controller=subtask&action=create&task_id='.$task['id'].'&another_subtask=1');
}
$this->response->redirect('?controller=task&action=show&task_id='.$task['id'].'#subtasks');