Add reference to the createComment parameters

I've only seen the reference column being used by integrations (gitbucket,etc), would be nice that from the API we could also use that column for other references.
This commit is contained in:
Eskiso 2015-12-17 09:35:18 +00:00
parent 9758a61e0a
commit b3dbdca609
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);