Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.9 regressions, 2.9.1
-
Fix Version/s: 2.9.2
-
Component/s: Enrolments
-
Testing Instructions:
-
Affected Branches:MOODLE_29_STABLE
-
Fixed Branches:MOODLE_29_STABLE
-
Pull from Repository:
-
Pull Master Branch:wip-
MDL-51095-master -
Pull Master Diff URL:
Description
enroll/database/cli/sync.php crashes with a fatal PHP error when adding users to a course from external enrollments when the course is using groups.
PHP Fatal error: Call top undefined function groups_add_member() in enroll/meta/locallib.php at line 166
Adding require_once("{$CFG_>dirroot}/group/lib.php"); to the top of that function block (protected static function sync-with_parent_course() on line 81 of enrol/meta/locallib.php) fixes this.
Attachments
Issue Links
- is a regression caused by
-
MDL-17929 Auto-Create Groups: Populate groups from Child Courses in META courses
-
- Closed
-