mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-83263 grade: Handle undefined array key on grade override revert
This commit is contained in:
parent
97c2beae70
commit
8ea2f036c1
@ -168,7 +168,7 @@ if ($mform->is_cancelled()) {
|
||||
|
||||
if (isset($data->feedback) && is_array($data->feedback)) {
|
||||
$data->feedbackformat = $data->feedback['format'];
|
||||
$data->feedback = $data->feedback['text'];
|
||||
$data->feedback = $data->feedback['text'] ?? null;
|
||||
}
|
||||
|
||||
$old_grade_grade = new grade_grade(array('userid'=>$data->userid, 'itemid'=>$grade_item->id), true); //might not exist yet
|
||||
|
Loading…
x
Reference in New Issue
Block a user