mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
Merge branch 'wip-MDL-55519-master' of git://github.com/abgreeve/moodle
This commit is contained in:
commit
62398cd807
@ -503,7 +503,8 @@ class MoodleQuickForm_modgrade extends MoodleQuickForm_group {
|
||||
$this->scaleformelement->setValue(($value * -1));
|
||||
} else if ($value > 0) {
|
||||
$this->gradetypeformelement->setValue('point');
|
||||
$this->maxgradeformelement->setValue($value);
|
||||
$maxvalue = !empty($this->currentgrade) ? (string)unformat_float($this->currentgrade) : $value;
|
||||
$this->maxgradeformelement->setValue($maxvalue);
|
||||
}
|
||||
} else {
|
||||
$this->gradetypeformelement->setValue('none');
|
||||
|
Loading…
x
Reference in New Issue
Block a user