MDL-78436 gradebook: Require override to add feedback

This commit is contained in:
Kevin Percy 2023-07-27 17:30:37 +08:00
parent 478abd671f
commit d949243af7

View File

@ -106,6 +106,7 @@ class edit_grade_form extends moodleform {
$mform->addElement('editor', 'feedback', get_string('feedback', 'grades'), null, $feedbackoptions);
$mform->addHelpButton('feedback', 'feedback', 'grades');
$mform->setType('text', PARAM_RAW); // to be cleaned before display, no XSS risk
$mform->disabledIf('feedback', 'overridden');
// hidden params
$mform->addElement('hidden', 'oldgrade');