From 24671bd8b41b420d4586ed5c5cffbdcd91653ba7 Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Mon, 18 Sep 2006 09:16:49 +0000 Subject: [PATCH] validation should not watch out for teacher and students string anymore --- course/edit.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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"); -- 2.39.5