diff --git a/app/Controller/CommentController.php b/app/Controller/CommentController.php index 8557b36a6..fb6af2131 100644 --- a/app/Controller/CommentController.php +++ b/app/Controller/CommentController.php @@ -25,6 +25,7 @@ class CommentController extends BaseController public function create(array $values = array(), array $errors = array()) { $task = $this->getTask(); + $values['project_id'] = $task['project_id']; $this->response->html($this->helper->layout->task('comment/create', array( 'values' => $values, @@ -78,6 +79,8 @@ class CommentController extends BaseController $values = $comment; } + $values['project_id'] = $task['project_id']; + $this->response->html($this->template->render('comment/edit', array( 'values' => $values, 'errors' => $errors,