-
Bug
-
Resolution: Fixed
-
Trivial
-
2.7.9, 2.8.7, 2.9.1, 3.0
-
MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE, MOODLE_30_STABLE
-
MOODLE_28_STABLE, MOODLE_29_STABLE
-
The course_deleted observer for enrol_meta has a small typo which keeps the courseid reference hanging around after the course has been deleted.
$enrol->customint = 0;
|
Should be customint1 as customint is not a valid field name.
$enrol->customint1 = 0;
|
The update call is useless and I'd suggest we just remove it and preserve the existing functionality rather than potentially introducing regressions by changing the way this works.