From b621820ea141f8ad5228075f4a5143bb2037b467 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 97305fa717b..6bf4342e0e6 100644 --- a/mod/assign/locallib.php +++ b/mod/assign/locallib.php @@ -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; }