MDL-75292 mod_assign: Modify the 'Graded' filter query

Modifies the query used to filter graded students by removing the
condition that requires a submission to be marked as submitted. This
change allows the query to return students who have not submitted
their work but have still been graded, a scenario supported in the
assignment module.
This commit is contained in:
Mihail Geshoski
2025-03-31 22:45:23 +08:00
parent 65c7be536f
commit b829a6ddd3
+1 -2
View File
@@ -323,8 +323,7 @@ class assign_grading_table extends table_sql implements renderable {
} else if ($filter == ASSIGN_FILTER_GRADED) {
$where .= ' AND (s.timemodified IS NOT NULL AND
s.status = :submitted AND
(s.timemodified < g.timemodified AND g.grade IS NOT NULL))';
s.timemodified < g.timemodified AND g.grade IS NOT NULL)';
$params['submitted'] = ASSIGN_SUBMISSION_STATUS_SUBMITTED;
} else if ($filter == ASSIGN_FILTER_GRANTED_EXTENSION) {