-
Bug
-
Resolution: Fixed
-
Minor
-
2.3.2, 2.5
-
MOODLE_23_STABLE, MOODLE_25_STABLE
-
MOODLE_23_STABLE, MOODLE_24_STABLE
-
MDL-36223-master -
The title is quite explicit in itself.
I was able to correct the situation by editing the assign_user_outline in /mod/assign/lib.php based on the quiz function quiz_user_outline. I'm not sure tho if it's good enough but as for now, it resolved the issue for us. And instead of displaying the grade as "Grade : 9.0000", it's now "Grade : 9.00 / 10.00".
function assign_user_outline($course, $user, $coursemodule, $assignment) {
|
global $CFG;
|
require_once($CFG->libdir.'/gradelib.php');
|
require_once($CFG->dirroot.'/grade/grading/lib.php');
|
|
$gradinginfo = grade_get_grades($course->id,
|
'mod',
|
'assign',
|
$assignment->id,
|
$user->id);
|
|
$gradingitem = $gradinginfo->items[0];
|
$gradebookgrade = $gradingitem->grades[$user->id];
|
|
if (!$gradebookgrade) {
|
return null;
|
}
|
$result = new stdClass();
|
//$result->info = get_string('outlinegrade', 'assign', $gradebookgrade->grade); //remove this
|
$result->info = get_string('grade') . ': ' . $gradebookgrade->str_long_grade; // and add this one, inspired from quiz
|
$result->time = $gradebookgrade->dategraded;
|
|
return $result;
|
}
|
- has a clone
-
MDL-39372 Outline report error for Assignments (at least on qa.moodle.net)
-
- Closed
-
- has been marked as being related by
-
MDL-38140 Outline report only shows numerical grades
-
- Closed
-
- Testing discovered
-
MDLQA-5441 CLONE - A user can navigate the site via the navigation block
- Passed