mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
fixed gradebookroles cfg default value MDL-7253; merged from MOODLE_17_STABLE
This commit is contained in:
parent
80aede31d3
commit
7aa3e196a3
1 changed files with 1 additions and 6 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue