From d915c2a96b0cbb54b9949cc04495d156e1f89332 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 19 Mar 2017 16:45:32 -0400 Subject: Improve subtask toggle --- app/Controller/SubtaskRestrictionController.php | 2 -- 1 file changed, 2 deletions(-) (limited to 'app/Controller/SubtaskRestrictionController.php') diff --git a/app/Controller/SubtaskRestrictionController.php b/app/Controller/SubtaskRestrictionController.php index 0e207674..99315931 100644 --- a/app/Controller/SubtaskRestrictionController.php +++ b/app/Controller/SubtaskRestrictionController.php @@ -48,14 +48,12 @@ class SubtaskRestrictionController extends BaseController $this->subtaskModel->update(array( '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, - '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