From b3dbdca609700a80be6f31b894a7d8e479ad16cb Mon Sep 17 00:00:00 2001 From: Eskiso Date: Thu, 17 Dec 2015 09:35:18 +0000 Subject: 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. --- app/Api/Comment.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app') diff --git a/app/Api/Comment.php b/app/Api/Comment.php index 26b632e9..4c4027c0 100644 --- a/app/Api/Comment.php +++ b/app/Api/Comment.php @@ -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); -- cgit v1.2.3