-
Bug
-
Resolution: Won't Do
-
Major
-
None
-
2.2.4, 2.3.1, 3.9.1, 3.10, 4.0.6, 4.1.1
-
MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_310_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE, MOODLE_401_STABLE
-
master-
MDL-34332 -
The logic around setting timeenrolled in course completion has a couple of issues.
First, the cron uses the enrolments timecreated if it's higher than timeenrolled - this was to try work around the fact enrolment plugins might have a timeenrolled value of 0. Unfortunately this means that if an enrolment is created for the past the timecreated value will be higher and therefore completion will pick up the wrong date.
Secondly, if the course_completions record is created between the user enrolling in the course and the first cron run, completion_completion::mark_inprogress() does not set the timeenrolled value and will be set at 0.
- blocks
-
MDL-34481 "start" users in completion as soon as they become enrolled in a course
- Closed
- Discovered while testing
-
MDLSITE-1972 Detect tests without entry in phpunit.xml.dist
- Closed
- has been marked as being related by
-
MDL-32107 Completion Info reset state throws debugging error
- Closed
- is duplicated by
-
MDL-68596 timeenrolled values in course_completions table seem incorrect
- Open