MDL-45324 mod_assign: always notify students when requested
This commit is contained in:
committed by
Andrew Nicols
parent
bfa4e840d8
commit
b621820ea1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user