summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-12-17 20:20:06 -0500
committerFrederic Guillot <fred@kanboard.net>2015-12-17 20:20:06 -0500
commit47f518f3b4d975ad51e437d0269227ee938f274f (patch)
treefc792e9edbf60c9ef1da11bac122f36a33c83260 /app
parent59367d5450ce3607ee7a6c56849e7b5f67b7e42b (diff)
parentb3dbdca609700a80be6f31b894a7d8e479ad16cb (diff)
Merge pull-request #1566
Diffstat (limited to 'app')
-rw-r--r--app/Api/Comment.php3
1 files changed, 2 insertions, 1 deletions
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);