mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-78436 gradebook: Require override to add feedback
This commit is contained in:
parent
478abd671f
commit
d949243af7
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user