MDL-48861 assign: Make the requires grading filter consistent

Consistently include submissions with a null grade (see MDL-47694).
This commit is contained in:
Damyon Wiese 2015-10-13 14:24:08 +08:00
parent fb6bae3eae
commit ab848fea81
2 changed files with 2 additions and 2 deletions

View file

@ -1521,7 +1521,7 @@ class assign {
s.assignment = :assignid AND
s.timemodified IS NOT NULL AND
s.status = :submitted AND
(s.timemodified >= g.timemodified OR g.timemodified IS NULL)';
(s.timemodified >= g.timemodified OR g.timemodified IS NULL OR g.grade IS NULL)';
return $DB->count_records_sql($sql, $params);
}