Skip to content

Commit 62dc3fd

Browse files
author
David Monllao
committed
Merge branch 'MDL-61482-master' of git://github.com/zig-moodle/moodle
2 parents 130ab46 + 8be71d3 commit 62dc3fd

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

mod/assign/gradingtable.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,11 +1122,10 @@ public function col_allowsubmissionsfromdate(stdClass $row) {
11221122

11231123
if ($row->allowsubmissionsfromdate) {
11241124
$userdate = userdate($row->allowsubmissionsfromdate);
1125-
$o = $this->output->container($userdate, 'allowsubmissionsfromdate');
1125+
$o = ($this->is_downloading()) ? $userdate : $this->output->container($userdate, 'allowsubmissionsfromdate');
11261126
}
11271127

11281128
return $o;
1129-
11301129
}
11311130

11321131
/**
@@ -1140,11 +1139,10 @@ public function col_duedate(stdClass $row) {
11401139

11411140
if ($row->duedate) {
11421141
$userdate = userdate($row->duedate);
1143-
$o = $this->output->container($userdate, 'duedate');
1142+
$o = ($this->is_downloading()) ? $userdate : $this->output->container($userdate, 'duedate');
11441143
}
11451144

11461145
return $o;
1147-
11481146
}
11491147

11501148
/**
@@ -1158,11 +1156,10 @@ public function col_cutoffdate(stdClass $row) {
11581156

11591157
if ($row->cutoffdate) {
11601158
$userdate = userdate($row->cutoffdate);
1161-
$o = $this->output->container($userdate, 'cutoffdate');
1159+
$o = ($this->is_downloading()) ? $userdate : $this->output->container($userdate, 'cutoffdate');
11621160
}
11631161

11641162
return $o;
1165-
11661163
}
11671164

11681165
/**

0 commit comments

Comments
 (0)