-
Bug
-
Resolution: Fixed
-
Minor
-
3.2 regressions, 3.2.1
-
MOODLE_32_STABLE
-
MOODLE_32_STABLE
-
wip-
MDL-57782-master -
I've upgraded from Moodle 3.1 to 3.2.1 and now Moodle is sending welcome e-mails to students who self enrol on the courses, even when "Send course welcome message" is set to "no" (both on plugin config and course instance).
I've changed the code at enrol/self/lib.php and it seens to fix the problem:
diff --git a/enrol/self/lib.php b/enrol/self/lib.php
|
index 565f3ef..db8ed4b 100644 |
--- a/enrol/self/lib.php
|
+++ b/enrol/self/lib.php
|
@@ -173,7 +173,7 @@ class enrol_self_plugin extends enrol_plugin { |
}
|
}
|
// Send welcome message. |
- if ($instance->customint4 !== ENROL_DO_NOT_SEND_EMAIL) { |
+ if ($instance->customint4 != ENROL_DO_NOT_SEND_EMAIL) { |
$this->email_welcome_message($instance, $USER); |
}
|
}
|
- is a regression caused by
-
MDL-29110 Specify welcome email sender in enrol_self, or send emails from system noreply address
-
- Closed
-