From 9bf91ea832185135b1ca6482c8aee7e901b5e463 Mon Sep 17 00:00:00 2001 From: Jake Dallimore Date: Thu, 1 Aug 2019 13:39:43 +0800 Subject: [PATCH] MDL-66147 mod_assign: grading table status col shows relative dates The 'Status' column is sorted using 'status ASC/DESC, userid ASC', where status does not contain the due date. Overdue assignments have additional information displayed, but this is unrelated to the sort, meaning we don't need to change anything with sorting. --- mod/assign/gradingtable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/assign/gradingtable.php b/mod/assign/gradingtable.php index 75a659f91e5..f232fd6360c 100644 --- a/mod/assign/gradingtable.php +++ b/mod/assign/gradingtable.php @@ -1034,7 +1034,7 @@ class assign_grading_table extends table_sql implements renderable { public function col_status(stdClass $row) { $o = ''; - $instance = $this->assignment->get_instance(); + $instance = $this->assignment->get_instance($row->userid); $due = $instance->duedate; if ($row->extensionduedate) { -- 2.43.0