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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user