From eb6dfdca533bc18d8e1b1bdf4d4505c41d9b9c13 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Tue, 16 Sep 2014 17:54:17 +0200 Subject: Improve API calls for comments --- app/Event/CommentNotificationListener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Event') diff --git a/app/Event/CommentNotificationListener.php b/app/Event/CommentNotificationListener.php index 3771ea7e..0aa061f3 100644 --- a/app/Event/CommentNotificationListener.php +++ b/app/Event/CommentNotificationListener.php @@ -23,7 +23,7 @@ class CommentNotificationListener extends BaseNotificationListener { $values = array(); $values['comment'] = $this->notification->comment->getById($data['id']); - $values['task'] = $this->notification->task->getById($data['task_id'], true); + $values['task'] = $this->notification->task->getById($values['comment']['task_id'], true); return $values; } -- cgit v1.2.3