summaryrefslogtreecommitdiff
path: root/app/Action/CommentCreation.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-06-20 19:21:35 -0400
committerFrederic Guillot <fred@kanboard.net>2015-06-20 19:21:35 -0400
commit7b947ebdbd3b6bcd9de10ea4255bfa11fc88695c (patch)
treeec67439696608efb9e330c527c6a8f76da9d5c6d /app/Action/CommentCreation.php
parent22b26d0b4d68f0492275ec93eb4df1a975a8fc80 (diff)
Allow sync of Github comments without common username and add unit tests
Diffstat (limited to 'app/Action/CommentCreation.php')
-rw-r--r--app/Action/CommentCreation.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/Action/CommentCreation.php b/app/Action/CommentCreation.php
index 54d7be7d..44deb819 100644
--- a/app/Action/CommentCreation.php
+++ b/app/Action/CommentCreation.php
@@ -45,7 +45,6 @@ class CommentCreation extends Base
public function getEventRequiredParameters()
{
return array(
- 'reference',
'comment',
'user_id',
'task_id',
@@ -62,7 +61,7 @@ class CommentCreation extends Base
public function doAction(array $data)
{
return (bool) $this->comment->create(array(
- 'reference' => $data['reference'],
+ 'reference' => isset($data['reference']) ? $data['reference'] : '',
'comment' => $data['comment'],
'task_id' => $data['task_id'],
'user_id' => $data['user_id'],