From b829a6ddd3cb1072cbe20ce7ebf5c1e048c8d151 Mon Sep 17 00:00:00 2001 From: Mihail Geshoski Date: Wed, 19 Mar 2025 11:47:50 +0800 Subject: [PATCH] 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. --- mod/assign/gradingtable.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mod/assign/gradingtable.php b/mod/assign/gradingtable.php index 21a9de500a1..24b3b0b7b92 100644 --- a/mod/assign/gradingtable.php +++ b/mod/assign/gradingtable.php @@ -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) {