MDL-45324 mod_assign: always notify students when requested

This commit is contained in:
Mark Nelson 2014-12-16 23:41:00 -08:00
parent ceb7769a29
commit 8dc1f5ff71

View file

@ -6452,8 +6452,8 @@ class assign {
// is "Released". // is "Released".
$modinfo = get_fast_modinfo($this->course, $userid); $modinfo = get_fast_modinfo($this->course, $userid);
$cm = $modinfo->get_cm($this->get_course_module()->id); $cm = $modinfo->get_cm($this->get_course_module()->id);
if ($formdata->sendstudentnotifications && $flags->mailed != 1 && if ($formdata->sendstudentnotifications && $cm->uservisible &&
$cm->uservisible && $state == ASSIGN_MARKING_WORKFLOW_STATE_RELEASED) { $state == ASSIGN_MARKING_WORKFLOW_STATE_RELEASED) {
$flags->mailed = 0; $flags->mailed = 0;
} }