MDL-37533 Assign: Fix grading filters to show only assignments needing grading
Conflicts: mod/assign/gradingtable.php
This commit is contained in:
committed by
Damyon Wiese
parent
95755113bf
commit
ad4d0c5e05
@@ -138,7 +138,10 @@ class assign_grading_table extends table_sql implements renderable {
|
||||
$where .= ' AND s.timecreated > 0 ';
|
||||
}
|
||||
if ($filter == ASSIGN_FILTER_REQUIRE_GRADING) {
|
||||
$where .= ' AND (s.timemodified > g.timemodified OR (s.timemodified IS NOT NULL AND g.timemodified IS NULL))';
|
||||
$where .= ' AND (s.timemodified IS NOT NULL AND
|
||||
s.status = :submitted AND
|
||||
(s.timemodified > g.timemodified OR g.timemodified IS NULL))';
|
||||
$params['submitted'] = ASSIGN_SUBMISSION_STATUS_SUBMITTED;
|
||||
}
|
||||
if (strpos($filter, ASSIGN_FILTER_SINGLE_USER) === 0) {
|
||||
$userfilter = (int) array_pop(explode('=', $filter));
|
||||
|
||||
Reference in New Issue
Block a user