-
Bug
-
Resolution: Fixed
-
Minor
-
3.8.3, 4.0.7
-
MOODLE_38_STABLE, MOODLE_400_STABLE
-
MOODLE_401_STABLE, MOODLE_402_STABLE
-
MDL-68712-401 -
As per the documentation here: https://docs.moodle.org/401/en/Enrolment_key, we should receive a warning when we choose the same enrolment key for the course as the group enrolment key.
This is not the case and it results in the fact that the student is not added to the this group after self enrolment into to the course.
- Creating a course C1
- Add a groupe G1 and set its enrolment key to "pass"
- Adding Self enrolment as a method for C1
- Set Enrolment key as 'pass'
- Set Use group enrolment keys to "Yes"
- Save settings
- At this point we should have a a warning displaying that we have a similar key in one of the groups
Notes from original ticket:
The file "moodle/enrol/self/lib.php" contain at the line 162 an if statement:
// code placeholder
|
public function enrol_self(stdClass $instance, $data = null) { |
......
|
if ($instance->password and $instance->customint1 and $data->enrolpassword !== $instance->password) { |
......
|
Why $data->enrolpassword !== $instance->password ?
It's obviously wrong.
I'm missing something?
- has been marked as being related by
-
MDL-79357 PR only: MDL-68712 - No warning when self enrolment key is the same as the group key
-
- Closed
-
- Testing discovered
-
MDLQA-17979 CLONE - A group enrolment key may be used to automatically add users to the group
-
- Passed
-