Skip to content

Commit

Permalink
Fixed wrong model in comment actionCreate event triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandritsch91 committed Jul 26, 2021
1 parent e4d8a04 commit 713f4ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/CommentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
]));

Expand Down

0 comments on commit 713f4ee

Please sign in to comment.