mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-69867 mod_assign: Display current grade with scale value
When using workflow we show the current grade with its scale value instead of the internal index
This commit is contained in:
parent
4e398ff3f7
commit
0770d9fec3
1 changed files with 3 additions and 1 deletions
|
@ -7733,7 +7733,9 @@ class assign {
|
|||
$gradingstatus = $this->get_grading_status($userid);
|
||||
if ($gradingstatus != ASSIGN_MARKING_WORKFLOW_STATE_RELEASED) {
|
||||
if ($grade->grade && $grade->grade != -1) {
|
||||
$assigngradestring = html_writer::span(grade_floatval($grade->grade), 'currentgrade');
|
||||
$assigngradestring = html_writer::span(
|
||||
make_grades_menu($settings->grade)[grade_floatval($grade->grade)], 'currentgrade'
|
||||
);
|
||||
$label = get_string('currentassigngrade', 'assign');
|
||||
$mform->addElement('static', 'currentassigngrade', $label, $assigngradestring);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue