mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
grader report MDL-19704 Added ability to hide course and category totals without hiding anything else
This commit is contained in:
parent
086f0e6f46
commit
a25bb902f0
5 changed files with 53 additions and 55 deletions
|
@ -2857,6 +2857,17 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL");
|
|||
upgrade_main_savepoint($result, 2010010601);
|
||||
}
|
||||
|
||||
if ($result && $oldversion < 2010010601.01) {
|
||||
$table = new xmldb_table('grade_categories');
|
||||
$field = new xmldb_field('hidden', XMLDB_TYPE_INTEGER, '10', XMLDB_UNSIGNED, XMLDB_NOTNULL, null, 0);
|
||||
|
||||
if (!$dbman->field_exists($table, $field)) {
|
||||
$dbman->add_field($table, $field);
|
||||
}
|
||||
|
||||
upgrade_main_savepoint($result, 2010010601.01);
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue