diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-02-16 22:28:39 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-02-16 22:28:39 -0500 |
commit | 05e4f80b4b5b2905d6e2ec2e64b4814ecb0f9f6f (patch) | |
tree | b4af0c47a1731b0cf7a9c1a4009eebfc48592630 /app/Controller | |
parent | 706ced08dfb7871219a6140077cf20626e71baec (diff) | |
parent | 7c031c100ef04983005cb637631638756c3297ab (diff) |
Merge pull-request #3046
Diffstat (limited to 'app/Controller')
-rw-r--r-- | app/Controller/SubtaskController.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/Controller/SubtaskController.php b/app/Controller/SubtaskController.php index 134b057e..5fa55f6b 100644 --- a/app/Controller/SubtaskController.php +++ b/app/Controller/SubtaskController.php @@ -49,6 +49,7 @@ class SubtaskController extends BaseController { $values = array( 'task_id' => $task['id'], + 'user_id' => $task['owner_id'], 'another_subtask' => $this->request->getIntegerParam('another_subtask', 0) ); @@ -76,7 +77,12 @@ class SubtaskController extends BaseController } if (isset($values['another_subtask']) && $values['another_subtask'] == 1) { - return $this->create(array('project_id' => $task['project_id'], 'task_id' => $task['id'], 'another_subtask' => 1)); + return $this->create(array( + 'project_id' => $task['project_id'], + 'task_id' => $task['id'], + 'user_id' => $values['user_id'], + 'another_subtask' => 1 + )); } return $this->response->redirect($this->helper->url->to('TaskViewController', 'show', array('project_id' => $task['project_id'], 'task_id' => $task['id']), 'subtasks'), true); |