mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
fixed gradebookroles cfg default value MDL-7253; merged from MOODLE_17_STABLE
This commit is contained in:
parent
80aede31d3
commit
7aa3e196a3
@ -2312,12 +2312,7 @@ class admin_setting_special_gradebookroles extends admin_setting {
|
||||
$name = 'gradebookroles';
|
||||
$visiblename = get_string('gradebookroles', 'admin');
|
||||
$description = get_string('configgradebookroles', 'admin');
|
||||
|
||||
$default = $this->get_setting();
|
||||
|
||||
if (empty($default)) {
|
||||
$default = array(5); // The student role in a default install
|
||||
}
|
||||
$default = array(5=>'1'); // The student role in a default install
|
||||
|
||||
parent::admin_setting($name, $visiblename, $description, $default);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user