Skip to content
Browse files

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

… blank feedback is submitted.
  • Loading branch information...
1 parent 7033316 commit 35870a76db474b0e0aa53d862b2a327f4bef5d95 @merrill-oakland merrill-oakland committed Aug 21, 2012
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;
}
}

0 comments on commit 35870a7

Please sign in to comment.
Something went wrong with that request. Please try again.