MDL-44268 Assign: Improve the "not submitted" filter

This commit is contained in:
Damyon Wiese
2014-04-09 14:29:46 +08:00
parent c80d59f269
commit d6a3f559db
+3 -1
View File
@@ -181,7 +181,9 @@ class assign_grading_table extends table_sql implements renderable {
$params['submitted'] = ASSIGN_SUBMISSION_STATUS_SUBMITTED;
} else if ($filter == ASSIGN_FILTER_NOT_SUBMITTED) {
$where .= ' AND (s.timemodified IS NULL) ';
$where .= ' AND (s.timemodified IS NULL OR s.status = :draft OR s.status = :reopened) ';
$params['draft'] = ASSIGN_SUBMISSION_STATUS_DRAFT;
$params['reopened'] = ASSIGN_SUBMISSION_STATUS_REOPENED;
} else if ($filter == ASSIGN_FILTER_REQUIRE_GRADING) {
$where .= ' AND (s.timemodified IS NOT NULL AND