Merge pull-request #1566

This commit is contained in:
Frederic Guillot 2015-12-17 20:20:06 -05:00
commit 47f518f3b4
1 changed files with 2 additions and 1 deletions

View File

@ -25,12 +25,13 @@ class Comment extends \Kanboard\Core\Base
return $this->comment->remove($comment_id);
}
public function createComment($task_id, $user_id, $content)
public function createComment($task_id, $user_id, $content, $reference = '')
{
$values = array(
'task_id' => $task_id,
'user_id' => $user_id,
'comment' => $content,
'reference' => $reference,
);
list($valid, ) = $this->comment->validateCreation($values);