Skip to content

Commit

Permalink
Fixed bug #3478: Reminder contraint settings not used after first ema…
Browse files Browse the repository at this point in the history
…il batch

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@7316 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Jul 14, 2009
1 parent 2a41ac0 commit e111ddb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions admin/tokens.php
Expand Up @@ -1572,6 +1572,20 @@
."\t<input type='hidden' name='subaction' value=\"remind\" />\n"
."\t<input type='hidden' name='action' value=\"tokens\" />\n"
."\t<input type='hidden' name='sid' value=\"{$surveyid}\" />\n";
//Include values for constraints minreminderdelay and maxremindercount if they exist
if (isset($_POST['minreminderdelay']) &&
$_POST['minreminderdelay'] != '' &&
intval($_POST['minreminderdelay']) != 0)
{
$tokenoutput .= "\t<input type='hidden' name='minreminderdelay' value=\"".$_POST['minreminderdelay']."\" />\n";
}
if (isset($_POST['maxremindercount']) &&
$_POST['maxremindercount'] != '' &&
intval($_POST['maxremindercount']) != 0)
{
$tokenoutput .= "\t<input type='hidden' name='maxremindercount' value=\"".$_POST['maxremindercount']."\" />\n";
}
//
foreach ($surveylangs as $language)
{
$message = html_escape($_POST['message_'.$language]);
Expand Down

0 comments on commit e111ddb

Please sign in to comment.