The message for changing the max grade in the module form
was inaccurate for modules that can not rescale.
// 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>';