Permalink
Browse files

Merge branch 'wip-MDL-60485-master' of git://github.com/abgreeve/moodle

  • Loading branch information...
dmonllao committed Oct 20, 2017
2 parents 50a5fef + 749af21 commit 12514bd5732f983f30af13bf1f51ba3a0f61ffe4
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 12514bd

Please sign in to comment.