Fix broken user mentions in comment form at the bottom of the task view page

This commit is contained in:
Frederic Guillot
2017-05-22 16:37:34 -04:00
parent ec6bec1b3b
commit b0537e6449
3 changed files with 7 additions and 2 deletions

View File

@@ -3,6 +3,6 @@
</div>
<form method="post" action="<?= $this->url->href('CommentListController', 'save', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>" autocomplete="off">
<?= $this->form->csrf() ?>
<?= $this->form->textEditor('comment', array(), array(), array('required' => true)) ?>
<?= $this->form->textEditor('comment', array('project_id' => $task['project_id']), array(), array('required' => true)) ?>
<?= $this->modal->submitButtons() ?>
</form>

View File

@@ -25,7 +25,11 @@
<?php if ($editable): ?>
<?= $this->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,
)) ?>