MDL-45324 mod_assign: always notify students when requested

This commit is contained in:
Mark Nelson
2014-12-18 14:09:23 +08:00
committed by Andrew Nicols
parent bfa4e840d8
commit b621820ea1
+2 -2
View File
@@ -6460,8 +6460,8 @@ class assign {
// is "Released".
$modinfo = get_fast_modinfo($this->course, $userid);
$cm = $modinfo->get_cm($this->get_course_module()->id);
if ($formdata->sendstudentnotifications && $flags->mailed != 1 &&
$cm->uservisible && $state == ASSIGN_MARKING_WORKFLOW_STATE_RELEASED) {
if ($formdata->sendstudentnotifications && $cm->uservisible &&
$state == ASSIGN_MARKING_WORKFLOW_STATE_RELEASED) {
$flags->mailed = 0;
}