Merge branch 'master_MDL-30211' of git://github.com/danmarsden/moodle
authorSam Hemelryk <sam@moodle.com>
Wed, 7 Dec 2011 21:44:47 +0000 (10:44 +1300)
committerSam Hemelryk <sam@moodle.com>
Wed, 7 Dec 2011 21:44:47 +0000 (10:44 +1300)
enrol/imsenterprise/lib.php

index 2dec772..e9e90fa 100644 (file)
@@ -403,6 +403,10 @@ function process_group_tag($tagcontents) {
 
                     $courseid = $DB->insert_record('course', $course);
 
+                    // Setup default enrolment plugins
+                    $course->id = $courseid;
+                    enrol_course_updated(true, $course, null);
+
                     // Setup the blocks
                     $course = $DB->get_record('course', array('id' => $courseid));
                     blocks_add_default_course_blocks($course);