From d3650eaa2582f6224eb5f5549829b7a84cda1ea4 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Tue, 7 Feb 2017 20:54:56 -0500 Subject: Fix broken subtask restriction per user --- app/Controller/SubtaskRestrictionController.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'app/Controller/SubtaskRestrictionController.php') diff --git a/app/Controller/SubtaskRestrictionController.php b/app/Controller/SubtaskRestrictionController.php index cb642e1c..0e207674 100644 --- a/app/Controller/SubtaskRestrictionController.php +++ b/app/Controller/SubtaskRestrictionController.php @@ -46,14 +46,16 @@ class SubtaskRestrictionController extends BaseController // Change status of the previous "in progress" subtask $this->subtaskModel->update(array( - 'id' => $values['id'], - 'status' => $values['status'], + 'id' => $values['id'], + 'status' => $values['status'], + 'task_id' => $task['id'], )); // Set the current subtask to "in progress" $this->subtaskModel->update(array( - 'id' => $subtask['id'], - 'status' => SubtaskModel::STATUS_INPROGRESS, + 'id' => $subtask['id'], + 'status' => SubtaskModel::STATUS_INPROGRESS, + 'task_id' => $task['id'], )); $this->response->redirect($this->helper->url->to('TaskViewController', 'show', array('project_id' => $task['project_id'], 'task_id' => $task['id'])), true); -- cgit v1.2.3