Skip to content

Commit

Permalink
Fixed issue #18507: {ANSWERTABLE} not working in basic admin notifica…
Browse files Browse the repository at this point in the history
…tion (#2794)

Co-authored-by: lapiudevgit <devgit@lapiu.biz>
  • Loading branch information
gabrieljenik and lapiudevgit committed Jan 5, 2023
1 parent 5626e9f commit d2c6b95
Showing 1 changed file with 4 additions and 0 deletions.
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);
$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

0 comments on commit d2c6b95

Please sign in to comment.