Преглед на файлове

[svn r15615] save reminder_mail even if "send reminder" si not checked (FS#2662)

Eric Marguin преди 16 години
родител
ревизия
2d1e2f5ad0
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      main/survey/survey_invite.php

+ 1 - 1
main/survey/survey_invite.php

@@ -144,7 +144,7 @@ if ($form->validate())
 {
 	$values = $form->exportValues();
 	// save the invitation mail
-	SurveyUtil::save_invite_mail($values['mail_text'], $values['resend_to_all']);
+	SurveyUtil::save_invite_mail($values['mail_text'], !empty($survey_data['invite_mail']));
 	// saving the invitations for the course users
 	$count_course_users = SurveyUtil::save_invitations($values['course_users'], $values['mail_title'], $values['mail_text'], $values['resend_to_all'], $values['send_mail']);
 	// saving the invitations for the additional users