mirror of
https://github.com/moodle/moodle.git
synced 2025-01-30 03:58:34 +01:00
Merge branch 'MDL-47400-master-2' of git://github.com/andrewnicols/moodle
This commit is contained in:
commit
8b2d85406a
@ -48,7 +48,7 @@ if (!isset($USER->grade_last_report)) {
|
||||
}
|
||||
$USER->grade_last_report[$course->id] = 'history';
|
||||
|
||||
$select = "itemtype != 'course' AND itemname != '' AND courseid = :courseid";
|
||||
$select = "itemtype <> 'course' AND courseid = :courseid AND " . $DB->sql_isnotempty('grade_items', 'itemname', true, true);
|
||||
$itemids = $DB->get_records_select_menu('grade_items', $select, array('courseid' => $course->id), 'itemname ASC', 'id, itemname');
|
||||
$itemids = array(0 => get_string('allgradeitems', 'gradereport_history')) + $itemids;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user