diff --git a/src/controllers/CommentController.php b/src/controllers/CommentController.php index f845c78..a8f9267 100644 --- a/src/controllers/CommentController.php +++ b/src/controllers/CommentController.php @@ -59,12 +59,12 @@ public function actionCreate($taskId, $group = 'bucket') if ($model->load(Yii::$app->request->post()) && $model->save()) { $this->module->trigger(Module::EVENT_COMMENT_CREATED, new TaskEvent([ - 'task' => $model, + 'task' => $task, 'data' => $model ])); $this->module->trigger(Module::EVENT_TASK_UPDATED, new TaskEvent([ - 'task' => $model, + 'task' => $task, 'data' => $model ]));