MDL-34363 gradebook Adding check to prevent incorrect override when a blank feedback is submitted.

This commit is contained in:
Eric Merrill 2012-08-21 00:24:55 -04:00
parent c92d6f417c
commit 59d410ebb4

View File

@ -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;
}
}