Merge branch 'wip-MDL-49694-master' of git://github.com/marinaglancy/moodle

This commit is contained in:
Andrew Nicols 2015-04-08 08:37:34 +08:00
commit b38b62f86c
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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 | 0100 | 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