MDL-48884 mod_assign: prevented setting gradebook feedback unnecessarily

This commit is contained in:
Mark Nelson
2015-02-09 22:18:21 -08:00
parent ba9a541797
commit 9e0b0f76bb
+1
View File
@@ -4240,6 +4240,7 @@ class assign {
$this->get_grading_status($grade->userid) != ASSIGN_MARKING_WORKFLOW_STATE_RELEASED) {
// Remove the grade (if it exists) from the gradebook as it is not 'final'.
$grade->grade = -1;
$grade->feedbacktext = '';
}
if ($submission != null) {