mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-34363 gradebook Adding check to prevent incorrect override when a blank feedback is submitted.
This commit is contained in:
parent
c92d6f417c
commit
59d410ebb4
@ -225,7 +225,7 @@ class grade_report_grader extends grade_report {
|
||||
$changedgrades = true;
|
||||
|
||||
} else if ($datatype === 'feedback') {
|
||||
if ($oldvalue->feedback === $postedvalue) {
|
||||
if (($oldvalue->feedback === $postedvalue) or ($oldvalue->feedback === NULL and empty($postedvalue))) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user