From 43d774a94fe4e20665bad1299165b9ed9a50b96d Mon Sep 17 00:00:00 2001 From: skodak Date: Mon, 17 Jul 2006 08:39:36 +0000 Subject: [PATCH] Bug #6120 - Course creation - loginproblem; merged from MOODLE_16_STABLE --- course/edit.php | 1 + 1 file changed, 1 insertion(+) diff --git a/course/edit.php b/course/edit.php index d6f412962a..8ade7096e3 100644 --- a/course/edit.php +++ b/course/edit.php @@ -145,6 +145,7 @@ $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!"); -- 2.39.5