Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed issue #18507: {ANSWERTABLE} not working in basic admin notification #2794

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions application/helpers/frontend_helper.php
Expand Up @@ -527,12 +527,16 @@ function sendSubmitNotifications($surveyid, array $emails = [], bool $return = f
$responseId = $sRecipient['responseId'];
$notificationRecipient = $sRecipient['recipient'];
$emailLanguage = $sRecipient['language'];
$aReplacementVars['ANSWERTABLE'] = getResponseTableReplacement($surveyid, $responseId, $emailLanguage, $bIsHTML);
LimeExpressionManager::updateReplacementFields($aReplacementVars);
Shnoulle marked this conversation as resolved.
Show resolved Hide resolved
$mailer->setTypeWithRaw('admin_notification', $emailLanguage);
$mailer->setTo($notificationRecipient);
$mailerSuccess = $mailer->resend(json_decode($sRecipient['resendVars'],true));
} else {
$failedNotificationId = null;
$notificationRecipient = $sRecipient;
$aReplacementVars['ANSWERTABLE'] = getResponseTableReplacement($surveyid, $responseId, $emailLanguage, $bIsHTML);
LimeExpressionManager::updateReplacementFields($aReplacementVars);
$mailer->setTo($notificationRecipient);
$mailerSuccess = $mailer->SendMessage();
}
Expand Down