From e9c069bec42d10be8e46a8ba9eca3a11f02c24a2 Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Tue, 16 Dec 2014 23:41:00 -0800 Subject: [PATCH] MDL-45324 mod_assign: always notify students when requested --- mod/assign/locallib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/assign/locallib.php b/mod/assign/locallib.php index 504a34c79a1..57aac5550ef 100644 --- a/mod/assign/locallib.php +++ b/mod/assign/locallib.php @@ -6319,8 +6319,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; }