mirror of
https://github.com/moodle/moodle.git
synced 2025-04-17 06:25:33 +02:00
MDL-47696 assign: allow 'not submitted' filter to get all other submission statuses
This commit is contained in:
parent
d3ff82257e
commit
8f16523082
@ -175,10 +175,8 @@ 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 OR s.status = :draft OR s.status = :reopened) ';
|
||||
$params['draft'] = ASSIGN_SUBMISSION_STATUS_DRAFT;
|
||||
$params['reopened'] = ASSIGN_SUBMISSION_STATUS_REOPENED;
|
||||
|
||||
$where .= ' AND (s.timemodified IS NULL OR s.status != :submitted) ';
|
||||
$params['submitted'] = ASSIGN_SUBMISSION_STATUS_SUBMITTED;
|
||||
} else if ($filter == ASSIGN_FILTER_REQUIRE_GRADING) {
|
||||
$where .= ' AND (s.timemodified IS NOT NULL AND
|
||||
s.status = :submitted AND
|
||||
|
Loading…
x
Reference in New Issue
Block a user