]> git.mjollnir.org Git - moodle.git/commitdiff
Bug #6120 - Course creation - loginproblem; merged from MOODLE_16_STABLE
authorskodak <skodak>
Mon, 17 Jul 2006 08:39:36 +0000 (08:39 +0000)
committerskodak <skodak>
Mon, 17 Jul 2006 08:39:36 +0000 (08:39 +0000)
course/edit.php

index d6f412962abb2d42063931f364636d87abef9cf3..8ade7096e3e175dbaca0135642cf224f2885ccd5 100644 (file)
                         $newteacher->course = $newcourseid;
                         $newteacher->authority = 1;   // First teacher is the main teacher
                         $newteacher->editall = 1;     // Course creator can edit their own course
+                        $newteacher->enrol = 'manual';// enrol the teacher too - bug #6120
 
                         if (!$newteacher->id = insert_record("user_teachers", $newteacher)) {
                             error("Could not add you to this new course!");