Merge branch 'patch-1' into 'develop'

Update add_comment.php: update sendUpdateNotification parameters order



See merge request !150
This commit is contained in:
Antonin 2016-09-05 16:41:05 +02:00
parent 52d7e88b00
commit 05faa85074
1 changed files with 1 additions and 1 deletions

View File

@ -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'));
}