From ac8b6611c9455fe4fbdbc0f0161a61becee62966 Mon Sep 17 00:00:00 2001 From: Zig Tan Date: Fri, 15 Jun 2018 10:10:59 +0800 Subject: [PATCH] MDL-61482 mod_assign: Clean html in offline grading CSV --- mod/assign/gradingtable.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/mod/assign/gradingtable.php b/mod/assign/gradingtable.php index ad5ba632160..4241c951246 100644 --- a/mod/assign/gradingtable.php +++ b/mod/assign/gradingtable.php @@ -1121,11 +1121,10 @@ class assign_grading_table extends table_sql implements renderable { if ($row->allowsubmissionsfromdate) { $userdate = userdate($row->allowsubmissionsfromdate); - $o = $this->output->container($userdate, 'allowsubmissionsfromdate'); + $o = ($this->is_downloading()) ? $userdate : $this->output->container($userdate, 'allowsubmissionsfromdate'); } return $o; - } /** @@ -1139,11 +1138,10 @@ class assign_grading_table extends table_sql implements renderable { if ($row->duedate) { $userdate = userdate($row->duedate); - $o = $this->output->container($userdate, 'duedate'); + $o = ($this->is_downloading()) ? $userdate : $this->output->container($userdate, 'duedate'); } return $o; - } /** @@ -1157,11 +1155,10 @@ class assign_grading_table extends table_sql implements renderable { if ($row->cutoffdate) { $userdate = userdate($row->cutoffdate); - $o = $this->output->container($userdate, 'cutoffdate'); + $o = ($this->is_downloading()) ? $userdate : $this->output->container($userdate, 'cutoffdate'); } return $o; - } /**