From 713f4ee310df6b2e1e3aea90e188e33277215c77 Mon Sep 17 00:00:00 2001 From: Sandritsch91 Date: Mon, 26 Jul 2021 09:45:04 +0200 Subject: [PATCH] Fixed wrong model in comment actionCreate event triggers --- src/controllers/CommentController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ]));