grader report MDL-19704 Added ability to hide course and category totals without hiding anything else

This commit is contained in:
Andrew Davis 2010-01-11 07:35:40 +00:00
parent 086f0e6f46
commit a25bb902f0
5 changed files with 53 additions and 55 deletions

View file

@ -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;
}