MDL-48884 mod_assign: prevented setting gradebook feedback unnecessarily

This commit is contained in:
Mark Nelson 2015-01-25 16:49:04 -08:00
parent 4c27f52d91
commit 0b1df17129

View File

@ -4328,6 +4328,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) {