Fix broken user mentions in popup comment form
This commit partially reverts commit
> commit 61e63ef9e0
> Author: Tomas Dittmann <chaosmeist3r@gmail.com>
> Date: Sat Feb 5 05:59:33 2022 +0100
>
> Remove `project_id` from task URLs
where those things should have been kept
(cf FormHelper::textEditor for the need for $values['project_id'])
This commit is contained in:
parent
234b8a8c27
commit
3bbf26b169
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue