mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
Merge branch 'mdl-7133-401' of https://github.com/juancs/moodle into MOODLE_401_STABLE
This commit is contained in:
commit
e0dc36f27e
@ -7968,9 +7968,12 @@ 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(
|
||||
make_grades_menu($settings->grade)[grade_floatval($grade->grade)], 'currentgrade'
|
||||
);
|
||||
if ($settings->grade > 0) {
|
||||
$assigngradestring = format_float($grade->grade, $this->get_grade_item()->get_decimals());
|
||||
} else {
|
||||
$assigngradestring = make_grades_menu($settings->grade)[grade_floatval($grade->grade)];
|
||||
}
|
||||
$assigngradestring = html_writer::span($assigngradestring, 'currentgrade');
|
||||
$label = get_string('currentassigngrade', 'assign');
|
||||
$mform->addElement('static', 'currentassigngrade', $label, $assigngradestring);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user