mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'wip-MDL-60485-master' of git://github.com/abgreeve/moodle
This commit is contained in:
commit
12514bd573
@ -199,8 +199,10 @@ class MoodleQuickForm_modgrade extends MoodleQuickForm_group {
|
||||
// Set a message so the user knows why they can not alter the grade type or scale.
|
||||
if ($this->currentgradetype == 'scale') {
|
||||
$gradesexistmsg = get_string('modgradecantchangegradetyporscalemsg', 'grades');
|
||||
} else {
|
||||
} else if ($this->canrescale) {
|
||||
$gradesexistmsg = get_string('modgradecantchangegradetypemsg', 'grades');
|
||||
} else {
|
||||
$gradesexistmsg = get_string('modgradecantchangegradetype', 'grades');
|
||||
}
|
||||
|
||||
$gradesexisthtml = '<div class=\'alert\'>' . $gradesexistmsg . '</div>';
|
||||
|
Loading…
x
Reference in New Issue
Block a user