From c2e9ef8d1df3eaffa4462314bb1044df7f7a70a1 Mon Sep 17 00:00:00 2001 From: Adrian Greeve Date: Thu, 19 Oct 2017 10:42:02 +0800 Subject: [PATCH] MDL-60485 modgrade: Update to mod settings form. The message for changing the max grade in the module form was inaccurate for modules that can not rescale. --- lib/form/modgrade.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/form/modgrade.php b/lib/form/modgrade.php index f9c23f9699a..ee7916ca6f0 100644 --- a/lib/form/modgrade.php +++ b/lib/form/modgrade.php @@ -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 = '
' . $gradesexistmsg . '
';