From: toyomoyo Date: Mon, 18 Sep 2006 09:16:49 +0000 (+0000) Subject: validation should not watch out for teacher and students string anymore X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=24671bd8b41b420d4586ed5c5cffbdcd91653ba7;p=moodle.git validation should not watch out for teacher and students string anymore --- diff --git a/course/edit.php b/course/edit.php index 1a04be17af..14fce41f01 100644 --- a/course/edit.php +++ b/course/edit.php @@ -145,7 +145,6 @@ } else { // Add current teacher and send to course // find a role with legacy:edittingteacher - if ($teacherroles = get_roles_with_capability('moodle/legacy:editingteacher', CAP_ALLOW, $context)) { // assign the role to this user $teachereditrole = array_shift($teacherroles); @@ -306,11 +305,11 @@ function validate_form($course, &$form, &$err) { if (empty($form->summary)) $err["summary"] = get_string("missingsummary"); - if (empty($form->teacher)) - $err["teacher"] = get_string("missingteacher"); + //if (empty($form->teacher)) + // $err["teacher"] = get_string("missingteacher"); - if (empty($form->student)) - $err["student"] = get_string("missingstudent"); + //if (empty($form->student)) + // $err["student"] = get_string("missingstudent"); if (! $form->category) $err["category"] = get_string("missingcategory");