Commit 01df798e authored by Marina Glancy's avatar Marina Glancy
Browse files

MDL-49694 gradebook: display proper course name in overview

parent 1d3fd63f
......@@ -158,7 +158,7 @@ class grade_report_overview extends grade_report {
continue;
}
$courseshortname = format_string($course->shortname, true, array('context' => $coursecontext));
$courseshortname = format_string(get_course_display_name_for_list($course), true, array('context' => $coursecontext));
$courselink = html_writer::link(new moodle_url('/grade/report/user/index.php', array('id' => $course->id, 'userid' => $this->user->id)), $courseshortname);
$canviewhidden = has_capability('moodle/grade:viewhidden', $coursecontext);
......
......@@ -77,8 +77,8 @@ Feature: We can enter in grades and view reports from the gradebook
| Grade item | Grade | Range | Percentage |
| Course total | 90.00 | 0–100 | 90.00 % |
And I set the field "Grade report" to "Overview report"
And "C1" row "Grade" column of "overview-grade" table should contain "170.00"
And "C1" row "Grade" column of "overview-grade" table should not contain "90.00"
And "Course 1" row "Grade" column of "overview-grade" table should contain "170.00"
And "Course 1" row "Grade" column of "overview-grade" table should not contain "90.00"
@javascript
Scenario: We can add a weighting to a grade item and it is displayed properly in the user report
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment