Skip to content

Commit

Permalink
Fixed issue #8712: No confirmation email is sent if uses_left>1
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Feb 16, 2014
1 parent d4b09a4 commit a477804
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions application/helpers/frontend_helper.php
Expand Up @@ -507,8 +507,8 @@ function submittokens($quotaexit=false)
{
if ($token && trim(strip_tags($thissurvey['email_confirm'])) != "" && $thissurvey['sendconfirmation'] == "Y")
{
if($token->completed == "Y" || $token->completed == $today)
{
// if($token->completed == "Y" || $token->completed == $today)
// {
$from = "{$thissurvey['adminname']} <{$thissurvey['adminemail']}>";
$to = $token->email;
$subject=$thissurvey['email_confirm_subj'];
Expand Down Expand Up @@ -581,9 +581,9 @@ function submittokens($quotaexit=false)
}
SendEmailMessage($message, $subject, $to, $from, $sitename, $ishtml, null, $aRelevantAttachments);
}
} else {
// } else {
// Leave it to send optional confirmation at closed token
}
// }
}
}
}
Expand Down

0 comments on commit a477804

Please sign in to comment.