From b0537e644948804ab62c06ac73d512243287c1ae Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Mon, 22 May 2017 16:37:34 -0400 Subject: Fix broken user mentions in comment form at the bottom of the task view page --- ChangeLog | 1 + app/Template/comment_list/create.php | 2 +- app/Template/task_comments/show.php | 6 +++++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f4fb94c4..7c0b9eb6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,7 @@ Improvements: Bug fixes: +* Fix broken user mentions in comment form at the bottom of the task view page * Ensure project tags are removed when the project is removed * Avoid PHP notice when regenerating API token for a user * Fix wrong dropdown menu in group members list diff --git a/app/Template/comment_list/create.php b/app/Template/comment_list/create.php index a1bae5eb..4c86bc06 100644 --- a/app/Template/comment_list/create.php +++ b/app/Template/comment_list/create.php @@ -3,6 +3,6 @@
form->csrf() ?> - form->textEditor('comment', array(), array(), array('required' => true)) ?> + form->textEditor('comment', array('project_id' => $task['project_id']), array(), array('required' => true)) ?> modal->submitButtons() ?>
diff --git a/app/Template/task_comments/show.php b/app/Template/task_comments/show.php index d34e5e95..47bb5ff2 100644 --- a/app/Template/task_comments/show.php +++ b/app/Template/task_comments/show.php @@ -25,7 +25,11 @@ render('task_comments/create', array( - 'values' => array(), + 'values' => array( + 'user_id' => $this->user->getId(), + 'task_id' => $task['id'], + 'project_id' => $task['project_id'], + ), 'errors' => array(), 'task' => $task, )) ?> -- cgit v1.2.3