Numsections on site should be zero for people upgrading from 1.3.x -> 1.4
This commit is contained in:
@@ -505,6 +505,7 @@ function main_upgrade($oldversion=0) {
|
||||
|
||||
if ($oldversion < 2004053000) { /// set defaults for site course
|
||||
$site = get_site();
|
||||
set_field('course', 'numsections', 0, 'id', $site->id);
|
||||
set_field('course', 'groupmodeforce', 1, 'id', $site->id);
|
||||
set_field('course', 'teacher', get_string('administrator'), 'id', $site->id);
|
||||
set_field('course', 'teachers', get_string('administrators'), 'id', $site->id);
|
||||
|
||||
Reference in New Issue
Block a user