mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
Removed check for course format changing
This commit is contained in:
parent
c320b113fb
commit
d44714bc35
@ -153,10 +153,10 @@ function validate_form($course, &$form, &$err) {
|
||||
if ($form->startdate > $form->enddate)
|
||||
$err["startdate"] = "Starts after it ends!";
|
||||
|
||||
if (($form->startdate < time()) && ($course->format <> $form->format)) {
|
||||
$err["format"] = "Can't change the format now";
|
||||
$form->format = $course->format;
|
||||
}
|
||||
# if (($form->startdate < time()) && ($course->format <> $form->format)) {
|
||||
# $err["format"] = "Can't change the format now";
|
||||
# $form->format = $course->format;
|
||||
# }
|
||||
|
||||
if (! $form->category)
|
||||
$err["category"] = "You need to choose a category";
|
||||
|
Loading…
x
Reference in New Issue
Block a user