Skip to content
Permalink
Browse files
Merge branch 'wip-MDL-60485-33' of git://github.com/abgreeve/moodle i…
…nto MOODLE_33_STABLE
  • Loading branch information
David Monllao committed Oct 20, 2017
2 parents 1c6b071 + c2e9ef8 commit 33336b560edce5434335d8bbc22683323ae4209d
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/form/modgrade.php
@@ -199,8 +199,10 @@ public function _createElements() {
// 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>';

0 comments on commit 33336b5

Please sign in to comment.