Skip to content
Snippets Groups Projects
Commit 451b299b authored by Gautier Pelloux-Prayer's avatar Gautier Pelloux-Prayer
Browse files

Update add_comment.php: update sendUpdateNotification parameters order

parent c5b9c415
No related branches found
No related tags found
No related merge requests found
......@@ -70,7 +70,7 @@ if (!$poll) {
$result = $pollService->addComment($poll_id, $name, $comment);
if ($result) {
$message = new Message('success', __('Comments', 'Comment added'));
$notificationService->sendUpdateNotification($poll, $mailService, $name, NotificationService::ADD_COMMENT);
$notificationService->sendUpdateNotification($poll, NotificationService::ADD_COMMENT, $name);
} else {
$message = new Message('danger', __('Error', 'Comment failed'));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment