summaryrefslogtreecommitdiff
path: root/app/Controller/SubtaskConverterController.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controller/SubtaskConverterController.php')
-rw-r--r--app/Controller/SubtaskConverterController.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/Controller/SubtaskConverterController.php b/app/Controller/SubtaskConverterController.php
index 404c50d0..dafbb7e0 100644
--- a/app/Controller/SubtaskConverterController.php
+++ b/app/Controller/SubtaskConverterController.php
@@ -13,7 +13,7 @@ class SubtaskConverterController extends BaseController
public function show()
{
$task = $this->getTask();
- $subtask = $this->getSubtask();
+ $subtask = $this->getSubtask($task);
$this->response->html($this->template->render('subtask_converter/show', array(
'subtask' => $subtask,
@@ -24,7 +24,8 @@ class SubtaskConverterController extends BaseController
public function save()
{
$project = $this->getProject();
- $subtask = $this->getSubtask();
+ $task = $this->getTask();
+ $subtask = $this->getSubtask($task);
$task_id = $this->subtaskTaskConversionModel->convertToTask($project['id'], $subtask['id']);