Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-34363 gradebook Adding check to prevent incorrect override when a…

… blank feedback is submitted.
  • Loading branch information...
commit 35870a76db474b0e0aa53d862b2a327f4bef5d95 1 parent 7033316
@merrill-oakland merrill-oakland authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  grade/report/grader/lib.php
View
2  grade/report/grader/lib.php
@@ -225,7 +225,7 @@ public function process_data($data) {
$changedgrades = true;
} else if ($datatype === 'feedback') {
- if ($oldvalue->feedback === $postedvalue) {
+ if (($oldvalue->feedback === $postedvalue) or ($oldvalue->feedback === NULL and empty($postedvalue))) {
continue;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.