mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +02:00
MDL-45324 mod_assign: always notify students when requested
This commit is contained in:
parent
ceb7769a29
commit
8dc1f5ff71
1 changed files with 2 additions and 2 deletions
|
@ -6452,8 +6452,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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue