From 6d5ffaa848dcbc09538f79cb0cdea08f5306f4a4 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Mon, 18 May 2015 21:04:06 -0400 Subject: Send all Kanboard events to the webhook (breaking change) --- app/Model/Comment.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/Model/Comment.php') diff --git a/app/Model/Comment.php b/app/Model/Comment.php index 844f0c89..3aa9c027 100644 --- a/app/Model/Comment.php +++ b/app/Model/Comment.php @@ -129,7 +129,9 @@ class Comment extends Base ->eq('id', $values['id']) ->update(array('comment' => $values['comment'])); - $this->container['dispatcher']->dispatch(self::EVENT_UPDATE, new CommentEvent($values)); + if ($result) { + $this->container['dispatcher']->dispatch(self::EVENT_UPDATE, new CommentEvent($values)); + } return $result; } -- cgit v1.2.3