From 7b947ebdbd3b6bcd9de10ea4255bfa11fc88695c Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 20 Jun 2015 19:21:35 -0400 Subject: Allow sync of Github comments without common username and add unit tests --- app/Action/CommentCreation.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app/Action/CommentCreation.php') 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'], -- cgit v1.2.3